Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractProxy.php

function AbstractProxy::isActive

Has a session started?

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 50

Class

AbstractProxy
@author Drak <drak@zikula.org>

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

public function isActive() : bool {
    return \PHP_SESSION_ACTIVE === session_status();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal