[Catalyst] upon successful login, how do i get redirect users back to the page they wanted to access previously?

kakimoto at tpg.com.au kakimoto at tpg.com.au
Sat Apr 18 01:34:17 GMT 2009


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



More information about the Catalyst mailing list