CakePHP: using Cookie component during logout

Zoloft

New Member
I'm trying to delete/unset additional cookies during the logout action in my cakePHP app. I'm trying all three methods and none of them seem to have any effect whatsoever. Here's what is in UsersController.php:\[code\]public function logout() { $wp_cookie = grab_wp_cookie(); //this grabs the extra cookie name/value $cookie_name = (isset($wp_cookie['name'])) ? $wp_cookie['name'] : NULL; //none of these do anything... $this->Cookie->write($cookie_name, 'xxx', false, strtotime('-1 day')); $this->Cookie->delete($cookie_name); $this->Cookie->destroy(); $this->redirect($this->Auth->logout());}\[/code\]Am I missing something? I found this documentation but it doesn't indicate anything problematic about what I'm doing. However it does show a lot of configuration optoins in the \[code\]beforeFilter()\[/code\] which I have not used.
 
Back
Top