*/
protected $wrapper = false;
- /**
- * @var bool
- */
- protected $active = false;
-
/**
* @var string
*/
*/
public function isActive()
{
- if (\PHP_VERSION_ID >= 50400) {
- return $this->active = \PHP_SESSION_ACTIVE === session_status();
- }
-
- return $this->active;
- }
-
- /**
- * Sets the active flag.
- *
- * Has no effect under PHP 5.4+ as status is detected
- * automatically in isActive()
- *
- * @internal
- *
- * @param bool $flag
- *
- * @throws \LogicException
- */
- public function setActive($flag)
- {
- if (\PHP_VERSION_ID >= 50400) {
- throw new \LogicException('This method is disabled in PHP 5.4.0+');
- }
-
- $this->active = (bool) $flag;
+ return \PHP_SESSION_ACTIVE === session_status();
}
/**