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

Breadcrumb

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

function WriteSafeSessionHandler::setSessionWritable

Overrides WriteSafeSessionHandlerInterface::setSessionWritable

File

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

Class

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

Namespace

Drupal\Core\Session

Code

public function setSessionWritable($flag) {
    $this->sessionWritable = (bool) $flag;
}

API Navigation

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