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

Breadcrumb

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

function AbstractSessionHandler::open

4 calls to AbstractSessionHandler::open()
PdoSessionHandler::open in vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php
PdoSessionHandler::open in vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php
StrictSessionHandler::open in vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php
StrictSessionHandler::open in vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php
2 methods override AbstractSessionHandler::open()
PdoSessionHandler::open in vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php
StrictSessionHandler::open in vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php

File

vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php, line 31

Class

AbstractSessionHandler
This abstract session handler provides a generic implementation of the PHP 7.0 SessionUpdateTimestampHandlerInterface, enabling strict and lazy session handling.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function open(string $savePath, string $sessionName) : bool {
    $this->sessionName = $sessionName;
    if (!headers_sent() && !\ini_get('session.cache_limiter') && '0' !== \ini_get('session.cache_limiter')) {
        header(\sprintf('Cache-Control: max-age=%d, private, must-revalidate', 60 * (int) \ini_get('session.cache_expire')));
    }
    return true;
}

API Navigation

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