php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6983 session_destroy() does not remove session
Submitted: 2000-10-03 00:10 UTC Modified: 2001-04-27 18:48 UTC
From: ptemple at progressivepublishing dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.1pl2 OS: Windows 2000
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: ptemple at progressivepublishing dot com
New email:
PHP Version: OS:

 

 [2000-10-03 00:10 UTC] ptemple at progressivepublishing dot com
I cannot seem to log a user out using the following script:

session_start();
session_unregister('varname');
session_destroy();
Header("Location: <homepageurl>");

The session file does not get deleted and the user is not prompted for username/password upon returning to the protected page.

Ta,

Phillip.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-03 02:57 UTC] waldschrott@php.net
this is dup without further information, #5231 reopened
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 04:01:36 2025 UTC