|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-10 08:43 UTC] vovik at tut dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
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.