Re: Session-trouble bigtime

From: Date: Mon, 18 Mar 2002 15:17:45 +0000
Subject: Re: Session-trouble bigtime
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12672@lists.php.net to get a copy of this message
At 03:58 PM 3/18/2002 +0100, Martin wrote:
Hmm I have registred the Session $Namn by the following snippet: << File1 >> <? session_register("Namn"); $Namn = "sweden"; echo"ett litet test med sessioner"; ?>
Should there be a session_start() here? You have session.auto_start set to 0 in your PHP.INI, so I'm not sure if this will actually start the session.
And when I goes to: << File2 >> <? session_start() ; session_register("Namn"); echo"Hejsan $Namn !"; ?>
You don't register the variable again once you've started the session. You can get rid of the 'session_register("Namn");' here. -Mike

« previous php.windows (#12672) next »