[Catalyst] upon successful login, how do i get redirect users
back to the page they wanted to access previously?
Devin Austin
devin.austin at gmail.com
Sat Apr 18 01:38:13 GMT 2009
here's one way to do it:
http://dev.catalystframework.org/wiki/wikicookbook/nextpageredirect
On Fri, Apr 17, 2009 at 7:34 PM, <kakimoto at tpg.com.au> wrote:
>
> hi, everybody,
>
>
> Take this scenario:
> a user who has yet to login tries to access a path that is only for
> logged in users.
> Assume it is www.lginsurance.com.au/subcriptions/add.
>
>
> Hence, in my index.tt2, upon displaying a message indicating that the
> current user has yet to log in, I also display the log in form.
>
> ----------------- extract from index.tt2 - starts ------------------
>
> [% IF Catalyst.user_exists %]
> [% PROCESS "menu.tt2" %]
> [% ELSE %]
> User has not logged in.
> [% PROCESS "login.tt2" %]
> [% END %]
>
>
> ----------------- extract from index.tt2 - ends ------------------
>
>
>
> upon successful login, how do i get redirect users back to the page they
> wanted to access previously (which is
> www.lginsurance.com.au/subcriptions/add)? At the moment, upon successful
> login, menu.tt2 will be called.
>
> Thank you.
>
>
> K. akimoto
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-- =
Devin Austin
http://www.codedright.net
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090417/faf62=
a1a/attachment.htm
More information about the Catalyst
mailing list