|
|
@ -118,12 +118,9 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function open() |
|
|
|
public function open() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// this is available in PHP 5.4.0+ |
|
|
|
if (session_status() == PHP_SESSION_ACTIVE) { |
|
|
|
if (function_exists('session_status')) { |
|
|
|
$this->_opened = true; |
|
|
|
if (session_status() == PHP_SESSION_ACTIVE) { |
|
|
|
return; |
|
|
|
$this->_opened = true; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!$this->_opened) { |
|
|
|
if (!$this->_opened) { |
|
|
|