php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8908 SID and session_destroy()
Submitted: 2001-01-25 11:03 UTC Modified: 2001-03-16 17:27 UTC
From: fabbro at conecta dot it Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: Linux Slackware 7.0
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: fabbro at conecta dot it
New email:
PHP Version: OS:

 

 [2001-01-25 11:03 UTC] fabbro at conecta dot it
If I start a section and I ask for the destroy of the data
section, after writing a new section data SID value and
session_id () values doesen't match.
This happens, of course, if cookies are turned off.
Don't know if I don't understand what section_destroy stands
for.
Here is the code

<?php
// Turn cookies off
session_start ();
session_destroy ();
$test = 1;
session_register("test");
$ses = session_id ();
echo "$ses-<BR>";
echo SID."-<BR>";
?>

Best regards
 Luca

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-16 17:27 UTC] sas@php.net
This will work properly in PHP 4.0.5. Thanks for your report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 21:01:31 2025 UTC