diff --git a/libraries/joomla/session/handler/native.php b/libraries/joomla/session/handler/native.php index 9b439b6d9c3eb..bc13c8ab327f9 100644 --- a/libraries/joomla/session/handler/native.php +++ b/libraries/joomla/session/handler/native.php @@ -22,7 +22,7 @@ class JSessionHandlerNative implements JSessionHandlerInterface * @var boolean * @since 3.5 */ - private $started; + private $started = false; /** * Has the session been closed @@ -30,7 +30,7 @@ class JSessionHandlerNative implements JSessionHandlerInterface * @var boolean * @since 3.5 */ - private $closed; + private $closed = false; /** * Starts the session @@ -151,6 +151,7 @@ public function regenerate($destroy = false, $lifetime = null) // Workaround for https://bugs.php.net/bug.php?id=61470 as suggested by David Grudl session_write_close(); + $this->closed = true; if (isset($_SESSION)) {