newbie needs help with session variables

From: Date: Sat, 19 Apr 2008 21:20:19 +0000
Subject: newbie needs help with session variables
Groups: php.general 
Request: Send a blank email to php-general+get-273305@lists.php.net to get a copy of this message
Hi. I'm still very new to php and still trying to learn the ropes. I'm working on some code now trying to set up a session and use session variables in different scripts, but I'm getting this message: *Warning*: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in *Unknown* on line *0 *2 questions: 1) I've turned on register_globals in all of my php.ini files and restarted the webserver, but I'm still getting this message. Can anyone help me with this? 2) I get the idea that one should NOT turn on register_globals, but, if I don't do this, how do I share session variables between scripts (and avoid this message)? Thanks for any help that anyone can provide. Rod Clay clay.1@osu.edu* *

« previous php.general (#273305) next »