diff --git a/src/Linna/Session/Session.php b/src/Linna/Session/Session.php index ab1c8f56..64b908b0 100644 --- a/src/Linna/Session/Session.php +++ b/src/Linna/Session/Session.php @@ -151,17 +151,20 @@ private function setCookie() */ public function start() { - //prepare session start - $this->prepare(); + if (session_status() !== 2) + { + //prepare session start + $this->prepare(); - //start session - session_start(); - - //set new cookie - $this->setCookie(); + //start session + session_start(); - //link session super global to $data property - $this->data = &$_SESSION; + //set new cookie + $this->setCookie(); + + //link session super global to $data property + $this->data = &$_SESSION; + } //refresh session $this->refresh();