PHP SID is not displayed
You need session.use_trans_sid
to enable it for PHP to accept a session ID passed in either GET or POST.
source to share
The SID constant will show an empty string if a cookie named session.name was detected by the PHP file . See the man page . This means that the SID will only contain the usable string before the session cookie is sent to the browser.
This also means that if the browser refuses cookies, the persistent SID will work. Provided seeion.use_trans_id is included as Gumbo said.
source to share
Avoid omitting session IDs in URLs whenever possible; for cases where it is needed (such as when the client rejects the session cookie), have the built-in url rewriters modify the HTML.
Passing session IDs in URLs means you expose implementation details in URLs. Purist views aside, this can lead to practical problems with users copying and sharing URLs that contain session information, inadvertently exposing their sessions to friends or anyone else they share with.
source to share