Re: Problem storing sessions

From: Date: Thu, 24 Aug 2000 18:35:18 +0000
Subject: Re: Problem storing sessions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-13489@lists.php.net to get a copy of this message
Quoting Joao Prado Maia (jpm@kefta.com): > At 11:20 AM 8/24/2000 -0700, Aaron Abelard wrote: > >This is the code I'm using to test sessions: > > > ><? > > session_register("testvar"); > > echo "[" . $testvar . "]<br>"; > > $testvar = 100; > >?> > > Hi Aaron, > > Are you doing " session_start(); " before anything else related to sessions > on that code ? > > Regards, > Joao That is the entire program, used to demonstrate the problem I'm having. I've tried using session_start() at the top, however it didn't change the results. According to the manual, session_start() is implicitly implied by session_register(). Also, the code does work on my httpsd, which is running 4.0b4pl1 on the same machine. I'm pretty sure this code is not the problem. I've started digging through the PHP source to find where it writes the sessions out, but it seems as if whatever error I'm having is something others would have run into by now. Thanks, Joao. -- aaron / aig4.com

« previous php.general (#13489) next »