RE: [PHP] Destroy Sessions
| From: | Jason | Date: | Wed, 26 Jul 2000 16:58:38 +0000 |
| Subject: | RE: [PHP] Destroy Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8345@lists.php.net to get a copy of this message | ||
Seems to me you could use a timestamp or an expiration to destroy the
cookie. While this wouldn't prevent someone from closing the page and then
re-opening it immediately, it might do the trick.
Jason
>
>
> Hello,
>
> I am encountering a problem with sessions and them lingering around.
>
> Basically, a user logs in and they can see certain pages based on their
> access level. There is a logout button also that runs the
> session_destroy()
> function. If the user presses logout, there are no problems. However, if
> the user bookmarks the internal pages and then closes the browser without
> clicking logout, that session still lingers. When they reopen the browser
> and use their bookmark, the internal pages work!
>
> If I look at the directory where the sessions are stored, I can see the
> session file created when the person logs in. If they click logout (hence
> session_destroy()) the file gets deleted. However, if the user
> just closes
> the window, the session file remains, which allows the use of the
> bookmark.
>
> I am passing PHPSESSID via GET also in case people don't use cookies.
>
> Why isn't the session file getting deleted when a user closes the browser?
> How do I do this?
>
> Rohan :-)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
_______________________________________________________
Site Design, Hosting, and E-Commerce at www.webpipe.net