Re: Does $_SESSION work in any release?

From: Date: Sat, 13 Apr 2002 18:01:54 +0000
Subject: Re: Does $_SESSION work in any release?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-92893@lists.php.net to get a copy of this message
I am doing a session_start and am definately not using session_register (minus <? and ?>, the exact code is in my original email). phpinfo reports register_globals is off. Is there something else in the php.ini file I need to turn on to 'enable' $_SESSION? I tried using the php.ini-recommended and it didn't work either. Any other ideas? On Sat, Apr 13, 2002 at 11:42:49AM -0600, Jason Sheets wrote: > $_SESSION has worked for me on Unix since it was introduced. Make sure your > PHP is properly configured. session_start() must be called before you can > use $_SESSION. I've heard that if you use $_SESSION you may not use > session_register. > > The reports I've seen are reporting it is broken on Windows, however it > appears to be fixed on Windows in 4.2 RC2. > > Jason > ----- Original Message ----- > From: "Patrick Aland" <paland@stetson.edu> > To: <php-general@lists.php.net> > Sent: Saturday, April 13, 2002 11:22 AM > Subject: [PHP] Does $_SESSION work in any release? > > > > Running Apache,linux,php4.1.2 and I can't get $_SESSION to work, creates > > the temp file but doesn't actually put anything in it. There appears to > > be a bug report saying it is broke but does anyone know what version (if > > any) $_SESSION actually works in? I'm trying 4.1.1 also and its doing the > > same thing. > > > > I am running the the code from the manual's session page: > > session_start(); > > if (!isset($_SESSION['count'])) { > > $_SESSION['count'] = 0; > > } else { > > $_SESSION['count']++; > > } > > print("SESSION : ".$_SESSION['count']); > > > > and only get 0. > > > > > > Thanks. > > patrick > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.general (#92893) next »