/**
  * Logout user, destroying session and invalidating remember me cookie. Forwards to login form.
  */
 public function logoutAction()
 {
     $response = new Response();
     $response->setCookies($this->cookies->set('username', '', strtotime('-1 year')));
     $response->setCookies($this->cookies->set('password', '', strtotime('-1 year')));
     $this->session->destroy();
     return $response->redirect('session/index');
 }
示例#2
0
 public function setCookies(PhResponse\CookiesInterface $cookies)
 {
     return parent::setCookies($cookies);
 }
示例#3
0
 public function setCookies($cookies)
 {
     return parent::setCookies($cookies);
 }