note 72356 deleted from function.session-start by betz

From: Date: Mon, 15 Jan 2007 20:06:51 +0000
Subject: note 72356 deleted from function.session-start by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121752@lists.php.net to get a copy of this message
Note Submitter: Tom Reason: in docs ---- took me a while to figure this out so I think it must be valuable to some people, but if you intend to use sessions you must put this on the top, before anything else (not sure about doctype) on EVERY page you want to use sessions on. session_start() does not only starts a session, but it also continues one. I guess you can say it looks to see if a current session with that user is active to continue it, but if there isn't one, it register's a session ("starts" it). Again, I'm sure most people already knew this because they have successfully implimented sessions, but it took me a while

« previous php.notes (#121752) next »