note 33920 added to ref.session

From: Date: Fri, 11 Jul 2003 03:51:03 +0000
Subject: note 33920 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-51878@lists.php.net to get a copy of this message
i found something interesting, hope this helps someone: if you dont name the session before starting it, and when its still on, u start another session, the 2 messed up together, so to avoid this, name your session with session_name(), then start it with session_start(), and if u r trying to pass sids through the urls, for instance, the browser disabled cookie, remember to encrypt the id before passing it. ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33920 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33920&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33920&report=yes

« previous php.notes (#51878) next »