mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
4c61b579c4
commit
446dd408bb
1 changed files with 1 additions and 1 deletions
|
@ -721,7 +721,7 @@ class CakeSession {
|
|||
* @return void
|
||||
*/
|
||||
public static function renew() {
|
||||
if (!session_id()) {
|
||||
if (session_id() === '') {
|
||||
return;
|
||||
}
|
||||
if (isset($_COOKIE[session_name()])) {
|
||||
|
|
Loading…
Reference in a new issue