in your controller you should be able to get the referer for a
particular page by

$this->referer($default);
// see 
<http://api.cakephp.org/class_controller.html#e87c8e6edf53aadc511e3d050d71a494>

then you can put that in a session

$this->Session->write('referer', $this->referer());

to use later in a bunch of page changes or redirects

note this is just typed info not tested production stuff

On 1/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> 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)
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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