0
votes

Hi to all I have this strange error in my code. I want to make a cookie system with cakephp, and in app_controller.php I include

var $components = array('Auth', 'Cookie'); var $helpers = array('Html', 'Form', 'Session');

but everytime I click on Logout link the error appears. This is the function

function logout() { $cookie = $this->Cookie->read('User'); if($cookie) $this->Cookie->del('User'); $this->Session->setFlash('Logout'); $this->redirect($this->Auth->logout()); }

Where I can look for a solution? Thank you dude

1
Could you provide what is the error? - Nik Chankov

1 Answers

0
votes