public SessionConfigurationInterface::hasSession(Request $request)
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.
\Symfony\Component\HttpFoundation\Request $request: The request.
bool TRUE if there is a session identifier on the request.
public function hasSession(Request $request);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!SessionConfigurationInterface.php/function/SessionConfigurationInterface::hasSession/8.1.x