[Fwd: [PHP] HTTP_SESSION_VARS]
| From: | Ron Clark | Date: | Thu, 08 Nov 2001 16:56:25 +0000 |
| Subject: | [Fwd: [PHP] HTTP_SESSION_VARS] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73910@lists.php.net to get a copy of this message | ||
Ron Clark wrote:
>
> Chris O'Brien wrote:
> >
> > > 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
>
> I'm doing that.
>
> --
> Ron Clark
> System Administrator/Web Coordinator
> Armstrong Atlantic State University
> 11935 Abercorn Street
> Savannah, Ga 31419
> Phone: 912 961 3234
> Fax: 912 927 5353
--
Ron Clark
System Administrator/Web Coordinator
Armstrong Atlantic State University
11935 Abercorn Street
Savannah, Ga 31419
Phone: 912 961 3234
Fax: 912 927 5353