Re: ending a session
| From: | Raphael Hamzagic | Date: | Thu, 05 Sep 2002 21:30:45 +0000 |
| Subject: | Re: ending a session | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115357@lists.php.net to get a copy of this message | ||
Thanks,
But, if the client don't accept cookies?
And if the user open a new browser window with the same url, the new window
will use the same opened session.
I'm having trouble with this
Thanks,
Raphael
"Rasmus Lerdorf" <rasmus@php.net> wrote in message
news:Pine.LNX.4.44.0209051418390.11858-100000@www.lerdorf.com...
> Because there is absolutely no way for PHP to know that the user has
> closed the browser window. Nothing is sent from the browser to the server
> on a window close. By using session cookies (cookies without a specified
> expiry time) the session is effectively ended since the cookie is gone
> once the browser has been completely shut down (not just a window). When
> that user comes back to the site after starting their browser again they
> will get a new session.
>
> -Rasmus
>
> On Thu, 5 Sep 2002, Raphael Hamzagic wrote:
>
> > Hi,
> >
> > I'm just wanna know why the session doesn't end when the user closes the
> > browser window and how can i make it.
> >
> > Thanks
> >
> > Raphael
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>