ID:               39193
 User updated by:  gearb0x at eml dot cc
 Reported By:      gearb0x at eml dot cc
 Status:           Open
 Bug Type:         Session related
 Operating System: Linux FC4
 PHP Version:      5.1.6
 New Comment:

replacing unset($_SESSION[$key]) with session_unregister($key) has the
desired effect -- which your not suposed to use according to all docs.


Previous Comments:
------------------------------------------------------------------------

[2006-10-19 04:01:21] gearb0x at eml dot cc

Description:
------------
For some reason unseting session variables is stopping php from saving
any session variables. The code below should clear the session but it
isnt, this code worked fine on 5.1.2 on a freeBSD box. Also ive noticed
that if i make any changes to the session variables (ie: adding new
ones) they dont get saved in the session either

Reproduce code:
---------------
<?php

session_start();

foreach($_SESSION as $key=>$value)
{
        unset($_SESSION[$key]);
}

?>

Expected result:
----------------
This should clear the session. Also, any other changes made to the
session arent saved either (ie: creating more session variables



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


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

Reply via email to