Bug #11861 Updated: Can't set any session variable
| From: | sniper@php.net | Date: | Sun, 25 Nov 2001 00:33:37 +0000 |
| Subject: | Bug #11861 Updated: Can't set any session variable | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71564@lists.php.net to get a copy of this message | ||
ID: 11861
Updated by: sniper
Reported By: M.Izydorski@rubikon.pl
Old Status: Open
Status: Closed
Bug Type: Session related
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:
This is now fixed in CVS. Fix will be in PHP 4.2.0
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-07-03 13:35:47] M.Izydorski@rubikon.pl
The problem is, that I can't set any session variables when I turn register_globals Off. I read
documentation carefully, but following code doesn't work - variable "user" isn't
set in main.php. I'm not so sure what's mean of:
PHP DOC> only members of the global associative array
PHP DOC> $HTTP_SESSION_VARS can be registered as session
PHP DOC> variables.The restored session variables will only PHP DOC> be available in the array
$HTTP_SESSION_VARS
After execute following code, $HTTP_SESSION_VARS["user"] isn't set in
main.php.
> $user = $s_user;
> $HTTP_SESSION_VARS["user"] = $s_user;
> session_register("user");
> header("Location: main.php");
> exit;
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11861&edit=1