On sessions...
The php manual is not too clear on sessions, and after tinkering with it, I still have some questions:[list=a][*]Does a session_start() look for previous sessions on the users computer (ie cookies)?[*]In order to initialize a session variable (say: $_SESSION["Admin"] = False) each time a user visits a page for the first time, do I have to call session_unset()?[*]I started a page with session_start(), but echo SID returns an empty string. How comes?[/list=a]
I thought session variables had to be passed on "manually", either via cookies or via the URL. It seems as if PHP decides for itself whether to keep the values inside a session variable.
__________________
Those innocent fun games of the hallucination generation
Last edited by LaundroMat; 03-12-2003 at 08:01 PM..
|