|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-25 05:12 UTC] dexxter at nothing dot 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 06:00:01 2025 UTC |
reporter feedback: do you mean the: foreach ($my_array as $element ) { unset($element) ; } workaround? or is there any better?