RE: [PHP] Sessions & Logout
| From: | Jack Dempsey | Date: | Thu, 16 Nov 2000 01:20:00 +0000 |
| Subject: | RE: [PHP] Sessions & Logout | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25570@lists.php.net to get a copy of this message | ||
When the browser closes, yes, but take a Mac for instance. When I start a
session, let the user navigate pages, and then close the window, the next
window opened will still allow the user to access the protected pages.
True, on a PC closing the window closes the browser( thinking of IE here at
least ), so I'm set there...it's just the other case I'm worried about.
-----Original Message-----
From: Matt [mailto:matt@smokescreen.org]
Sent: Wednesday, November 15, 2000 8:14 PM
To: dempsejn@georgetown.edu; php-general@lists.php.net
Subject: Re: [PHP] Sessions & Logout
If the lifetime of the cookie is zero, which it is by default, then it
automatically deletes itself when the browser closes.
----- Original Message -----
From: <dempsejn@georgetown.edu>
To: <php-general@lists.php.net>
Sent: Wednesday, November 15, 2000 10:44 AM
Subject: [PHP] Sessions & Logout
> Hi all,
>
> I'm using sessions, and after a couple dumb mistakes, they're turning
> out to be pretty simple. Logging out's easy too. What about window
> closing? I'd love to mimic what hotmail does when you close the window
> and open a new one, because try as I might, staff here will just NOT hit
> that logout button...I've come up with a pretty bad method of using an
> onUnload javascript call to a php file that does the logging out...how
> should this really be done? Destroy a cookie with javascript?
> Any info would be much appreciated.
> Jack Dempsey
>
>