diff --git a/src/Control/Session.php b/src/Control/Session.php index 638cd7fe7..b7a4e1ade 100644 --- a/src/Control/Session.php +++ b/src/Control/Session.php @@ -226,9 +226,7 @@ class Session if (isset($this->data['HTTP_USER_AGENT'])) { if ($this->data['HTTP_USER_AGENT'] !== $this->userAgent($request)) { $this->clearAll(); - $this->destroy(); - $this->started = false; - $this->start($request); + $this->restart($request); } } } @@ -241,7 +239,7 @@ class Session public function restart(HTTPRequest $request) { $this->destroy(); - $this->init($request); + $this->start($request); } /** @@ -369,6 +367,7 @@ class Session // http://nz1.php.net/manual/en/function.session-destroy.php unset($_SESSION); $this->data = null; + $this->started = false; } /**