Commit 3a7d54dc authored by alexpott's avatar alexpott

Issue #2239181 by sun, znerol: SessionManager::isStarted() returns TRUE even...

Issue #2239181 by sun, znerol: SessionManager::isStarted() returns TRUE even after session_write_close() has been called.
parent 78fb347f
......@@ -51,13 +51,6 @@ class SessionManager implements SessionManagerInterface {
*/
protected static $enabled = TRUE;
/**
* Whether the session has been started.
*
* @var bool
*/
protected static $started = FALSE;
/**
* Constructs a new session manager instance.
*
......@@ -127,7 +120,6 @@ public function start() {
$session_data = isset($_SESSION) ? $_SESSION : NULL;
session_start();
static::$started = TRUE;
// Restore session data.
if (!empty($session_data)) {
......@@ -175,7 +167,7 @@ public function save() {
* {@inheritdoc}
*/
public function isStarted() {
return static::$started && session_status() === \PHP_SESSION_ACTIVE;
return session_status() === \PHP_SESSION_ACTIVE;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment