note 15834 added to ref.session

From: Date: Thu, 04 Oct 2001 14:28:02 +0000
Subject: note 15834 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-18564@lists.php.net to get a copy of this message
I have noticed that php will look for cookies even if session.use_cookies is set to 0 in php.ini or via ini_set, when the cookie is available userside. i tried the following: // example start //page1 start <? //disable use trans sid ini_set ( "session.use_trans_sid", "0" ); // use cookie ini_set ( "session.use_cookies", "1" ); session_start(); echo session_id(); ?> <a href="page2php">Link to Page 2</a> //page1 end //page2 start <? ini_set ( "session.use_trans_sid", "0" ); ini_set ("session.use_cookies", "0" ); session_start(); echo session_id(); ?> <a href="page1.php">Link to page 1</a> //page2 end //example end as you will see, the sessions won't change, althogh the SID won't get passed to page2. This is because of the cookie, stored userside. -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+15834 http://master.php.net/manage/user-notes.php?action=delete+15834 http://master.php.net/manage/user-notes.php?action=reject+15834

« previous php.notes (#18564) next »