note 18814 added to ref.session

From: Date: Wed, 06 Feb 2002 16:23:04 +0000
Subject: note 18814 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-26299@lists.php.net to get a copy of this message
In response to david.php@gasolinemm.com 18-Dec-2001 09:56 > Be advised that starting with version > 4.1, there is a new way to access and > register session variables through the > $_SESSION['your_variable'] array. Which is both entirely *not* backwards compatible with session_*() and horribly broken as far as variable functions go. In other words, if you are using an older version of 4.x and have already written code using session_start(), session_register(), session_is_registered(), and session_destroy(), your old code will not work. The workaround is, of course, to convert to $_SESSION[]. Which is nice if you're not pressed for time. :-( Also, even though $_SESSION[] appears to be an array of mixed type variables, none of the variable functions appear to work (i.e. isset(), empty(), unset(), is_*(), etc). I haven't yet found a good workaround for this. php 4.1.0, apache 1.3.20, win32 -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+18814 http://master.php.net/manage/user-notes.php?action=delete+18814 http://master.php.net/manage/user-notes.php?action=reject+18814

« previous php.notes (#26299) next »