public function Request::hasSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::hasSession()
Whether the request contains a Session object.
This method does not give any information about the state of the session object, like whether the session is started or not. It is just a way to check if this Request is associated with a Session instance.
Return value
bool true when the Request contains a Session object, false otherwise
1 call to Request::hasSession()
- Request::hasPreviousSession in vendor/
symfony/ http-foundation/ Request.php - Whether the request contains a Session which was started in one of the previous requests.
File
- vendor/
symfony/ http-foundation/ Request.php, line 771
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function hasSession() {
return null !== $this->session;
}