Re: ending a session
| From: | Gurhan Ozen | Date: | Thu, 05 Sep 2002 22:04:22 +0000 |
| Subject: | Re: ending a session | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115359@lists.php.net to get a copy of this message | ||
Ohhh, I see what you are looking for..
You have to play around with some javascript to do it.
Have a logout.php file, and destroy session in that file ...
And in the main page, have the javascript to open up a new window with
logout.php page.
Makes sense?
I hope this helps.
Gurhan
On Thu, 2002-09-05 at 17:32, Raphael Hamzagic wrote:
> 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
>