I have a users controller that when logs in redirects to another
controller that manages the redirects so if an admin logs in it sends
them to the admin controller and if a customer logs in it sends them
to the customers controller. They both have different access levels,
so when I logout I want the cookie deleted but I can't seem to achieve
it.
I have session in the components. Just wondering how I can get the
session to be deleted.
The problem arising is that when I logout and try to login as a
different user with a different level of access it throws an authError
but when I try to login with the same username and access level it
sends me to the right place.
function logout() {
// $this->Session->del('CAKEPHP');
$this->Session->destroy();
$this->Session->setFlash('You have logged out.');
$this->redirect($this->Auth->logout());
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---