usually the referrer is stored in the session, so after the login is
complete, you can retrieve it from the session and do the redirect

On Jan 31, 12:19 pm, "Devraj Mukherjee" <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> I am trying to create a authentication system for my application. I
> have managed to create a method in the app_controller.php file that
> allows me to check if a user is logged in. I am using session
> variables.
>
> However I wish to be able to re-direct the user back to the URL their
> originally requested after their authentication.
>
> How do I find the requesting URL.
>
> Thanks.
>
> --
> "I never look back darling, it distracts from the now", Edna Mode (The
> Incredibles)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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