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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 20:01:31 2024 UTC