Re: HTTP_SESSION_VARS

From: Date: Fri, 09 Nov 2001 00:06:12 +0000
Subject: Re: HTTP_SESSION_VARS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73974@lists.php.net to get a copy of this message
Regarding the same topic of session management, I am using PHP 3.09 and when I call session_start() or $HTTP_SESSION_VARS['someVariable] I get : Fatal error: Call to unsupported or undefined function session_start() So, my question is that: Is there any session management in PHP3.09? If the answer is no, what weould be an alternative? Regards, Ozgur ----- Original Message ----- From: "Chris O'Brien" <clobrien@excel.net> To: "Ron Clark" <clarkron@mail.armstrong.edu> Cc: "PHP general list" <php-general@lists.php.net> Sent: Friday, November 09, 2001 3:06 AM Subject: Re: [PHP] HTTP_SESSION_VARS > > I am working on a major PHP project using sessions and would like to run > > PHP with register_globals turned off. Trouble is, with PHP-4.0.6 I lose > > all the session variables and my program breaks. Tried - > > > > > > $username = $HTTP_SESSION_VARS['username']; > > print $username; > > > > and got nothing. > > > > print_r($HTTP_SESSION_VARS) shows an empty array. Is this a bug in > > 4.0.6. > > Try calling session_start(); before trying to grab the session variables, on > each page that needs to use the variables. > > * Chris O'Brien (clobrien@excel.net) > * Excel.Net,Inc. - http://www.excel.net/ > * (920) 452-0455 - Sheboygan/Plymouth area > * (888) 489-9995 - Other areas, toll-free > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#73974) next »