diff options
Diffstat (limited to 'includes/session/PHPSessionHandler.php')
-rw-r--r-- | includes/session/PHPSessionHandler.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/session/PHPSessionHandler.php b/includes/session/PHPSessionHandler.php index 44d14cd009ac..53443211f0d6 100644 --- a/includes/session/PHPSessionHandler.php +++ b/includes/session/PHPSessionHandler.php @@ -238,10 +238,12 @@ class PHPSessionHandler { $session = $this->manager->getSessionById( $id, true ); if ( !$session ) { + // This can happen under normal circumstances, if the session exists but is + // invalid. Let's emit a log warning instead of a PHP warning. $this->logger->warning( __METHOD__ . ": Session \"$id\" cannot be loaded, skipping write." ); - return false; + return true; } // First, decode the string PHP handed us |