Hi all,
When my users login, I want to redirect them to the page they were on
before they chose Login. This I was doing in beforeFilter() of
app_controller.php, by storing the current URL in the session.
However, some of my pages have multiple actions on them, which messes
this code up. For instance, I have a page with many content boxes,
which are populated by Ajax. Even though the URL of the page is
controller/action/, everytime one of the content boxes is loaded, the
current URL in the session is overwritten. Then when the user logs in,
they are brought to the individual page of the last content box, when
I want them to go to the overall page.
I have also tried adding code to a header element, but you cannot
write to the session from a view.

Has anyone got any ideas??

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