interface ResponseKeepSessionOpenInterface

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Session/ResponseKeepSessionOpenInterface.php \Drupal\Core\Session\ResponseKeepSessionOpenInterface

Indicates that sessions for this response should be kept open after sending.

By default, Drupal closes sessions as soon as the response is sent. If a response implements this interface, Drupal will skip this behavior and assume that the session will be closed manually later in the request.

@internal

Hierarchy

Expanded class hierarchy of ResponseKeepSessionOpenInterface

All classes that implement ResponseKeepSessionOpenInterface

See also

Drupal\Core\StackMiddleware\Session

Drupal\big_pipe\src\Render\BigPipeResponse

2 files declare their use of ResponseKeepSessionOpenInterface
BigPipeResponse.php in core/modules/big_pipe/src/Render/BigPipeResponse.php
Session.php in core/lib/Drupal/Core/StackMiddleware/Session.php

File

core/lib/Drupal/Core/Session/ResponseKeepSessionOpenInterface.php, line 16

Namespace

Drupal\Core\Session
View source
interface ResponseKeepSessionOpenInterface {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.