Renew the session even the session id is '0'.

This fixes AuthComponent not being able to log a user in when they
inadvertently change their session id to 0.

Refs #6053
This commit is contained in:
mark_story 2015-03-29 21:42:43 -04:00
parent 4c61b579c4
commit 446dd408bb

View file

@ -721,7 +721,7 @@ class CakeSession {
* @return void
*/
public static function renew() {
if (!session_id()) {
if (session_id() === '') {
return;
}
if (isset($_COOKIE[session_name()])) {