Browse Source

Merge pull request #14024 from cakephp/session-id

Use strict comparison.
Mark Story 6 years ago
parent
commit
2f68c080ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/Session.php

+ 1 - 1
src/Http/Session.php

@@ -614,7 +614,7 @@ class Session
             $params['httponly']
         );
 
-        if (session_id()) {
+        if (session_id() !== '') {
             session_regenerate_id(true);
         }
     }