/** * 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'); }
public function setCookies(PhResponse\CookiesInterface $cookies) { return parent::setCookies($cookies); }
public function setCookies($cookies) { return parent::setCookies($cookies); }