Re: Session - funny or magic?

From: Date: Mon, 08 Jul 2002 21:38:47 +0000
Subject: Re: Session - funny or magic?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14615@lists.php.net to get a copy of this message
I assure you, it's not magic, and it doesn't stop working "without reason" - there's always a reason with computers :) Could you please send a code snippet so we can see exactly what you're doing? -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Tomator" <tomator@wio.zsi.pl> wrote in message news:20020705220002.23928.qmail@pb1.pair.com... > Generally I don't believe in magic, but... > > I tried to use 'session' machanism. So I typed "session_start()" and so on, > configured path to store session info. Surely before sending any headers. I > defined variable "level", accesed by $_SESSION["level"]. Sesion files were > being created in correct directory, but files had zero length and mentioned > variable was not changing... was not even set. > > Register_globals was ON, everything should work. But didn't. > Turning off register_globals didn't change anything. > > I have added "counter" - just example from php manual. Initially nothing > happened until I changed acces mode to counter from $_SESSION["counter"] to > $HTTP_SESSION_VAR["counter"]. "Counter" was still unaffected and > unaccesible, but "level" (still accesed by $_SESSION["level"]) was! > > I'd love to know WHY. I'm afraid it can stop working "without" reason, > just > as started. Could anybody explain me what's going on? > >

« previous php.windows (#14615) next »