Session wierdness

From: Date: Sun, 12 Jan 2003 14:19:57 +0000
Subject: Session wierdness
Groups: php.general 
Request: Send a blank email to php-general+get-131416@lists.php.net to get a copy of this message
I can't seem to be able to set a session var from within a function in an include file.... I have a call to a function at the top of my doc (but after session_start()) and if I write the line: $_SESSION['userData'] = test1; in the function body - it does nothing... ... but if I put this statement on the line above or below the call to the function, it works I've tried using session_register() instead but the same thing happens. The block of code is definitely being executed. Someone please help me, I'm going insane. Thanks...

« previous php.general (#131416) next »