php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26021 Why won't the session expire?
Submitted: 2003-10-28 15:52 UTC Modified: 2003-10-28 17:42 UTC
From: oc34 at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.3 OS: win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: oc34 at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-10-28 15:52 UTC] oc34 at hotmail dot com
Description:
------------
My problem is, the session will not expire after the user logs out. Its fine the window is closed. Here is some info:
server information: OS win2000; NTFS; php version 4.3.3
php.ini configuration: session.cache_expire = 2; session.cookie_lifetime = 1; session.use_cookies Off; 

Reproduce code:
---------------
logout page code:
unset($_SESSION['username']);
unset($_SESSION['password']);
// kill session variables
$_SESSION = array(); // reset session array
session_destroy();   // destroy session.

Expected result:
----------------
upon logout session should be destroyed but it is not! Session does expire when browser is closed.

Actual result:
--------------
Page is alive after logout.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-28 17:42 UTC] sniper@php.net
You're doing something wrong. Propably the page is just in cache (blame IE)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 02:01:27 2024 UTC