You are here

public function AbstractProxy::isActive in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php \Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy::isActive()

Has a session started?

Return value

bool

2 calls to AbstractProxy::isActive()
AbstractProxy::setId in vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php
Sets the session ID.
AbstractProxy::setName in vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php
Sets the session name.

File

vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php, line 73

Class

AbstractProxy
AbstractProxy.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

public function isActive() {
  if (PHP_VERSION_ID >= 50400) {
    return $this->active = \PHP_SESSION_ACTIVE === session_status();
  }
  return $this->active;
}