Whether the request contains a Session which was started in one of the previous requests.
@api
boolean
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());
}