Re: undocumented session_name() change

From: Date: Sat, 26 May 2018 16:14:37 +0000
Subject: Re: undocumented session_name() change
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-102144@lists.php.net to get a copy of this message
On 25.05.2018 at 12:28, Christoph M. Becker wrote: > if ($_GET['action'] == 'newsession') { > $session_name = getNewSessionName(); // user-defined function > session_name($session_name); > session_regenerate_id(); > header('Location: ' ….); // restart script to use new session name > and id > exit; > } > > Why even call session_name($session_name) here? To my knowledge, this > is a no-op in this case (assuming a session has already been started). I have to correct myself. Actually, the call to session_regenerate_id() did change the session name (i.e. the cookie etc.) I'm still not convinced, that this BC break should be reverted. -- Christoph M. Becker

« previous php.internals (#102144) next »