note 72356 added to function.session-start

From: Date: Mon, 15 Jan 2007 19:55:23 +0000
Subject: note 72356 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-121750@lists.php.net to get a copy of this message
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 ---- Server IP: 216.194.113.175 Probable Submitter: 71.227.217.96 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/72356 Del: integrated -- https://master.php.net/note/delete/72356/integrated Del: useless -- https://master.php.net/note/delete/72356/useless Del: bad code -- https://master.php.net/note/delete/72356/bad+code Del: spam -- https://master.php.net/note/delete/72356/spam Del: non-english -- https://master.php.net/note/delete/72356/non-english Del: in docs -- https://master.php.net/note/delete/72356/in+docs Del: other reasons-- https://master.php.net/note/delete/72356 Reject -- https://master.php.net/note/reject/72356 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121750) next »