note 18814 deleted from ref.session by sniper
| From: | sniper@php.net | Date: | Sun, 28 Jul 2002 01:04:36 +0000 |
| Subject: | note 18814 deleted from ref.session by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33771@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