Whether the request contains a Session object.
@api
Return value
boolean
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 565
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundation
Code
public function hasSession() {
return null !== $this->session;
}