Page 1 of 1

$_SESSION

Posted: Tue Oct 14, 2003 2:04 pm
by Gen-ik
Am I right in thinking that if you use $_SESSION you don't need to use SESSION_START() with it?

The only reason I ask is because I've just noticed I haven't included (or can't find) session_start() on my new site but it seems to be working ok..... and it's confused me a bit :roll:

Posted: Tue Oct 14, 2003 2:06 pm
by volka
session_start() starts the the session handling. If you do not call it $_SESSION is without life ;-)
No session id will be searched or created and no data is loaded or saved.

Posted: Tue Oct 14, 2003 2:18 pm
by Stoneguard
I would be willing to bet you have a session_start in there somewhere. My code refuses to recognize session vars without it.

Posted: Tue Oct 14, 2003 6:23 pm
by JAM
You might have the setting in the php.ini to automaticly start sessin = On?