Edit report at http://bugs.php.net/bug.php?id=51745&edit=1

 ID:               51745
 Updated by:       der...@php.net
 Reported by:      maxtjh at hotmail dot com
 Summary:          session_regenerate_id(TRUE); doesn't delete $_SESSION
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          Session related
 Operating System: Window 7 Ultimate 32 bit
 PHP Version:      5.3SVN-2010-05-05 (SVN)

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

It says nowhere that it empties the session. Actually, the documentation
says explicitly that it does not.


Previous Comments:
------------------------------------------------------------------------
[2010-05-05 12:19:19] maxtjh at hotmail dot com

Description:
------------
$_SESSION should become an empty array after session_regenerate_id with
true, but it doens't!

Test script:
---------------
<?php

if(!isset($_SESSION)) session_start();



$_SESSION['a']='asd';



session_regenerate_id(TRUE);



echo var_dump($_SESSION).'<br/>';

?>



Expected result:
----------------
array(0) { } 

Actual result:
--------------
array(1) { ["a"]=>  string(3) "asd" } 


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51745&edit=1

Reply via email to