Re: Session does not end when browser is closed.
| From: | CPT John W. Holmes | Date: | Tue, 12 Aug 2003 12:47:14 +0000 |
| Subject: | Re: Session does not end when browser is closed. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159274@lists.php.net to get a copy of this message | ||
From: "Lee Hanxue" <hlee20@sng.its.monash.edu.au>
> I am using $_SESSION and each php page has session_start() Session
> Handling is working fine, except for one problem: when I close my
> browser and re-open it again, I am still logged in.
>
> I tested the log in and log out functions and they work fine.
>
> How can I terminate a session when the user closes the browser?
>
> All the while I thought a new session will be initiated when a new
> instance of the browser is used to access a page.
check that the session.cookie_lifetime hasn't been extended in php.ini,
.htaccess, or your scripts.
---John Holmes...