Skip to content

Commit a37a56d

Browse files
committed
Fix session status check
1 parent 7a56b33 commit a37a56d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Common.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ function force_https(int $duration = 31536000, RequestInterface $request = null,
405405
return;
406406
}
407407

408-
// If the session library is loaded, we should regenerate
408+
// If the session status is active, we should regenerate
409409
// the session ID for safety sake.
410-
if (class_exists('Session', false))
410+
if (session_status() === PHP_SESSION_ACTIVE)
411411
{
412412
Services::session(null, true)
413413
->regenerate();

0 commit comments

Comments
 (0)