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

Breadcrumb

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

function WriteSafeSessionHandler::__construct

Constructs a new write safe session handler.

Parameters

\SessionHandlerInterface $wrapped_session_handler: The underlying session handler.

bool $session_writable: Whether or not the session should be initially writable.

File

core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 38

Class

WriteSafeSessionHandler
Wraps the session handler to prevent writes when not necessary or allowed.

Namespace

Drupal\Core\Session

Code

public function __construct(\SessionHandlerInterface $wrapped_session_handler, $session_writable = TRUE) {
    $this->wrappedSessionHandler = $wrapped_session_handler;
    $this->sessionWritable = $session_writable;
}

API Navigation

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