note 90901 deleted from session.constants by thiago

From: Date: Fri, 15 May 2009 12:33:13 +0000
Subject: note 90901 deleted from session.constants by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154633@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- I think the previous comment is misleading. I think one should use SID as follows: Either you leave trans_sid to on, and then you shouldn't add ANY session id to ANY of your page links, as it would be done by PHP itself, or You turn off trans_sid and make each and every link on your page look like this: index.php?<?=SID;?> This is because if php receives the session cookie, it knows that no session info should be added on the urls, and makes the SID constant evaluate to an empty string (and, even if trans_sid is on, it doesn't add sid info automatically); instead, if no session cookie arrives, either the inclusion of <?=SID;?> or the activation of trans_sid takes care of adding the necessary session info to the urls.

« previous php.notes (#154633) next »