We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f251930 commit d0de3a4Copy full SHA for d0de3a4
Middleware/CsrfGuard.php
@@ -57,7 +57,7 @@ public function check() {
57
// Create token
58
$env = $this->app->environment();
59
60
- if ( PHP_SESSION_ACTIVE === session_status() ){
+ if ( "" === session_id() ){
61
if ( ! isset( $_SESSION[ $this->key ] ) ){
62
$_SESSION[ $this->key ] = sha1( serialize( $_SERVER ) . rand( 0, 0xffffffff ) );
63
}
0 commit comments