Hi all,

I am implementing Auth and Acl and have autoRedirect set to false
because I need to do some checks in the login function.

I am noticing after a successful logout followed by a login, I am
taken to the last address I was at before I logged out, instead of the
path listed in loginRedirect. In this case the session variable for
Auth.redirect is overriding what's in the AppController. Also, this
only happens when I click on a logout link, as opposed to when I
manually type out the logout path in the browser.

I tried deleting the session variable for auth.redirect in my logout
function, but that didn't help. It only works if I put that line in
the login function, but that breaks the main functionality for
Auth.redirect, which is if you try to visit a page that request
permission and you are not logged in then the login page is displayed
and upon successful login you are then redirected to the page you were
trying to visit.

Any ideas on what might be happening??

Thanks,
L4C
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to