ID: 13229 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]