Thursday, October 21, 2010

Re: Logout not... logging out?

Are you sure logoout is not logging you out? You can check with:

$this->Session->read($this->Auth->sessionKey)

(AuthComponent uses the session to store information about the logged
in user)

On Oct 21, 11:58 pm, xtraorange <xtraora...@gmail.com> wrote:
> Howdy all,
>
> I have a very standard logout method (see below) in my user
> controller.  But when I go to my logout (which used to work the last
> time I tested it) I just get forwarded to the root with no flash
> message and no actual logout.  Any ideas?
>
> function logout()
>     {
>         $this->Session->setFlash(lang('You have logged out.'));
>         $this->redirect($this->Auth->logout());
>
>     }
>
> What on earth could I have done to cause this failing logout issue?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate