You are here

public function Request::hasPreviousSession in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::hasPreviousSession()

Whether the request contains a Session which was started in one of the previous requests.

Return value

bool

File

vendor/symfony/http-foundation/Request.php, line 756

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function hasPreviousSession() {

  // the check for $this->session avoids malicious users trying to fake a session cookie with proper name
  return $this
    ->hasSession() && $this->cookies
    ->has($this->session
    ->getName());
}