When I do a pr of it , on logout it does a dump of all the data still
in the session.
Array
(
[Config] => Array
(
[userAgent] => f221f8a145cf92f820aefa5fc4a585bb
[time] => 1225399272
[rand] => 1107590627
[timeout] => 7
)
[Auth] => Array
(
[User] => Array
(
[id] => 1
[created] => 2008-10-29 14:43:47
[modified] => 2008-10-29 14:43:49
[username] => thatsgreat2345
[level] => 9
[email] => [EMAIL PROTECTED]
)
)
[Message] => Array
(
)
)
On Oct 30, 12:56 pm, teknoid <[EMAIL PROTECTED]> wrote:
> Auth doesn't set any cookies...
>
> logout() should handle deleting the session for you.
> try to pr($this->Session->read()); anywhere after logout and see what
> happens.
>
> maybe the problem is somewhere else
>
> On Oct 30, 3:13 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---