Bug #13229 Updated: sess vars doesn't saved when value assigned to $HTTP_SESSION_VARS (reg_glob=on)
| From: | growlies at hotmail dot com | Date: | Mon, 14 Jan 2002 19:21:07 +0000 |
| Subject: | Bug #13229 Updated: sess vars doesn't saved when value assigned to $HTTP_SESSION_VARS (reg_glob=on) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77045@lists.php.net to get a copy of this message | ||
ID: 13229
Comment by: growlies@hotmail.com
Old Reported By: vovik@tut.by
Reported By: growlies@hotmail.com
Status: Closed
Bug Type: Session related
Operating System: Win98SE
PHP Version: 4.0.6
New Comment:
i am having the some problems with this;
@session_start();
session_register("user" , "userlevel");
$HTTP_SESSION_VARS["user"] = $HTTP_POST_VARS["user"];
$HTTP_SESSION_VARS["userlevel"] = $userlevel;
session_write_close();
header("Location: admin.php?".SID);
i put this at the start...
ini_set("register_globals", "0");
i now have the session registerd 80% of the time.. when i get to
admin.php the variables are there. i hit refresh and they usually carry
through, but sometimes they don't. i refresh again and they sometimes
reappear too.
Previous Comments:
------------------------------------------------------------------------
[2001-11-24 19:53:30] sniper@php.net
This is fixed in CVS. Try latest CVS snapshot from:
http://snaps.php.net
Fix will be in PHP 4.2.0
------------------------------------------------------------------------
[2001-09-10 08:43:49] vovik@tut.by
Session vars doesn't saved when register_globals=on and value assigned
to $HTTP_SESSION_VARS["varname"], but saved when value assigned to
$varname.
But I need universal way, that works not depending of
register_globals.
Accordingly to documentation first way must work with
register_globals=on
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13229&edit=1