Bug #16818 Updated: unset doesn't unset session array

From: Date: Thu, 25 Apr 2002 11:46:13 +0000
Subject: Bug #16818 Updated: unset doesn't unset session array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5961@lists.php.net to get a copy of this message
 ID:               16818
 Updated by:       yohgaki@php.net
 Reported By:      dexxter@nothing.ch
-Status:           Open
+Status:           Analyzed
 Bug Type:         Session related
 Operating System: linux
 PHP Version:      4.2.0
 New Comment:

This bug is a kind of design bug, but it's easily fixed.
We need to get rid of PS(vars) and use PS(http_session_vars) as a main
session storage. There are some other options, though.

To reporter: You know work around mentioned in the manual, right?


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

[2002-04-25 05:12:25] dexxter@nothing.ch

unsetting several vars saved in a session doesn't work. 
 
eg: 
$HTTP_SESSION_VARS["arr_myfirstarray"] = array("foo","bar"); 
$HTTP_SESSION_VARS["arr_mysecondarray"] = array("foo","bar"); 
 
unset($HTTP_SESSION_VARS["arr_myfirstarray"],$HTTP_SESSION_VARS["arr_mysecondarray"]);

 
doesn't unset the variables in the session. it does unset them for 
the current script, but doesn't remove them from the SESSION-array 
correctly. 

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


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



Thread (4 messages)

« previous php.bugs (#5961) next »