note 106172 deleted from function.session-start by peehaa

From: Date: Mon, 27 Feb 2017 08:23:20 +0000
Subject: note 106172 deleted from function.session-start by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208866@lists.php.net to get a copy of this message
Note Submitter: Dark Angel ---- I had script which should under CLI restore session set by web interface. Spent like few hours understanding why script with session_id($sid) and session_start() is not restoring session, but generating new one. No any notices or anything helping to resolve. $sid was read from STDIN. Issue was that value from STDIN contained '\n' character at the end, which is invalid for session identifier. Discovered by stracing CLI script. Hope this will save you a lot of time.

« previous php.notes (#208866) next »