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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php