function SessionConfigurationInterface::hasSession
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Session/SessionConfigurationInterface.php \Drupal\Core\Session\SessionConfigurationInterface::hasSession()
- 10 core/lib/Drupal/Core/Session/SessionConfigurationInterface.php \Drupal\Core\Session\SessionConfigurationInterface::hasSession()
- 11.x core/lib/Drupal/Core/Session/SessionConfigurationInterface.php \Drupal\Core\Session\SessionConfigurationInterface::hasSession()
Determines whether a session identifier is on the request.
This method detects whether a session was started during one of the previous requests from the same user agent. Session identifiers are normally passed along using cookies and hence a typical implementation checks whether the session cookie is on the request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request.
Return value
bool TRUE if there is a session identifier on the request.
1 method overrides SessionConfigurationInterface::hasSession()
- SessionConfiguration::hasSession in core/
lib/ Drupal/ Core/ Session/ SessionConfiguration.php - Determines whether a session identifier is on the request.
File
-
core/
lib/ Drupal/ Core/ Session/ SessionConfigurationInterface.php, line 26
Class
- SessionConfigurationInterface
- Defines an interface for session configuration generators.
Namespace
Drupal\Core\SessionCode
public function hasSession(Request $request);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.