note 88826 deleted from session.idpassing by sobak

From: Date: Fri, 25 Nov 2016 08:09:43 +0000
Subject: note 88826 deleted from session.idpassing by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207679@lists.php.net to get a copy of this message
Note Submitter: a dot nielsen at shikadi dot net ---- When you generate URLs yourself using the SID variable, it must come first in the URL parameter list. For example, if SID expands to "mysession=123" then this does NOT work: file.php?var1=value&mysession=123 The SID must come first: file.php?mysession=123&var1=value If the SID does not come first then session_start() does not recognise it and it creates a new session instead of loading the old one.

« previous php.notes (#207679) next »