Page 1 of 1

page running after browser close

Posted: Sat Jan 30, 2010 1:56 pm
by don1one
Hi,
I've just run into something I've never seen before.

I have a form that allows a customer to accept or deny an agreement. If agree isn't explicitly clicked, I assume it's been rejected.

The problem is if a visitor closes their browser. The page they're on gets run again after they close the browser, even though form submit is never clicked.

I'm assuming it has something to do with $_SESSION, but I've never seen this feature documented anywhere. It happens on all browsers. I'm running Apache 2.2 on a Redhat server, php 5.2, I'm using $_SESSIONs and it's over an ssl link.

Does anyone know more or somewhere I can go for more information?

Thanks

Re: page running after browser close

Posted: Sat Jan 30, 2010 2:05 pm
by AbraCadaver
Post the code and it will be easier to spot the problem.

Re: page running after browser close

Posted: Sat Jan 30, 2010 2:57 pm
by don1one
I wouldn't know what part to post, and most of it's sensitive.

But it's basically

Open page with form.
exit browser
server page listed in form action runs anyway.

Re: page running after browser close

Posted: Sat Jan 30, 2010 9:22 pm
by stuartshields
What $_SESSIONs are being called when the window is being opened? Are you declaring the Sessions before the script? After? During? I think that could be your issue.

Re: page running after browser close

Posted: Sun Jan 31, 2010 11:51 am
by Benjamin
Sounds like a JavaScript issue.