Page 1 of 1
Session variables
Posted: Thu Oct 05, 2006 7:04 pm
by impulse()
Any ideas why when in file A I specify
Code: Select all
session_start();
$_SESSION['loggedIn'] = 1;
And then in file B I do
I get returned blank data, as if the value was never passed to the session variable?
Stephen,
Posted: Thu Oct 05, 2006 7:37 pm
by Luke
you have to do session_start() in the second file as well... and turn on error reporting... it will help you figure this sort of thing out.
Posted: Thu Oct 05, 2006 7:57 pm
by s.dot
The Ninja Space Goat wrote:you have to do session_start()
bingo bango bongo
Posted: Fri Oct 06, 2006 7:33 am
by impulse()
I don't believe it. It was only a couple of weeks ago I was having the same problem and it turned out to be because I was using an online web proxy to view my website. And it's just occured to me again, it's because I'm using an online web proxy.
DOH!