RE: [PHP] ending a session
| From: | victor | Date: | Fri, 06 Sep 2002 01:40:07 +0000 |
| Subject: | RE: [PHP] ending a session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115368@lists.php.net to get a copy of this message | ||
Why not unregistered the session variables first, destroy the session
second and redirect the user with a header location to a plain html page
that includes a one line JavaScript in the body tag like
onload+thiswindow cloase or something like that, and a message that
"please closes this window for complete logout. That's what I do and it
works, in mozilla the script closes the window, in i.e. it asks that the
user verify if they want to close the window, if they say no, then the
user sees the message that "please close this window to logout" and that
would pretty much take care of everything as far as I know.
- Victor > www.argilent.com
-----Original Message-----
From: Raphael Hamzagic [mailto:raphael@tabuleiro.com]
Sent: Thursday, September 05, 2002 5:32 PM
To: php-general@lists.php.net
Subject: Re: [PHP] ending a session
Of course Gurhan,
I have read all the php manual.
How can I send a message when the user closes the browser to destroy
the
session?
Thanks in advance
Raphael
"Gurhan Ozen" <ergenekon@starpower.net> wrote in message
news:1031261344.5091.266.camel@LOCALHOST...
> You can end the session by using function session_destroy().
> See:
>
> http://www.php.net/manual/en/function.session-destroy.php
>
> For general information on how PHP handles sessions see:
>
> http://www.php.net/manual/en/ref.session.php
>
> Hope this helps.
> Gurhan
>
> On Thu, 2002-09-05 at 17:17, 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
> >
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca