I am coming back to CakePHP after having given it a rest for a few
months, and am really enjoying the new features in 1.2.   I've gone
through and used Mark Story's fabulous auth and ACL tutorial, and have
it working pretty well, but there is one thing I'm not sure about.  I
know if you are on another page (you clicked somewhere that required
permissions and you were not authenticated or logged in), that it
redirects you to the login then back.  That's fine, but what I'm not
sure is how to handle the redirect when a user is coming from the
'home' page

I think I've got it figured out by setting my login redirect in
AppController to:

$this->Auth->loginRedirect = array('controller' => 'pages', 'action'
=> 'display', 'home');

However, I've noticed that sometimes I have to login twice before it
redirects.   Has anyone else experienced similar behavior?  Before I
made this change it seemed to work fine, and does on any page that
requires a login to get you ACL permissions.


Tim

--~--~---------~--~----~------------~-------~--~----~
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