[Catalyst] redirection to the original URI

Marc Logghe Marc.Logghe at DEVGEN.com
Sat Dec 30 11:21:32 GMT 2006




-----Oorspronkelijk bericht-----
Van: Octavian Rasnita [mailto:orasnita at gmail.com]
Verzonden: za 30-12-2006 11:38
Aan: catalyst at lists.rawmode.org
Onderwerp: [Catalyst] redirection to the original URI
 =

Hi,

If the user wants to access a restricted zone and it is redirected to the =

login page, which is the recommended way of redirecting him back to the =

original URL?

I know that I could create a hidden field in the login form and put the =

request URL in that field, and after the login, make a redirect to that URL=
, =

but I just want to know if there is a more easier way.

Thanks.

Octavian


Hi Octavian,
instead of putting the URL in a hidden field, you can put it in the session=
 hash.
HTH,
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2675 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20061230/5c5f=
ffda/attachment.bin


More information about the Catalyst mailing list