Scenario 2,

User types http://host/app/protectedCommand.m?p1=v1&p2=v2&p3=v3

Same idea, user is redirected to login and then if login is successfull
they
should be redirected through to initially selected command, only this time
there are a number of URL paramters that I wish to have set, Does anyone
have a simple way of acheiving this functionality.

David,


In general I usualy have a 'MasterController' that is extended by 'protectedCommand'. If the master controller determines that 'protectedCommand' requires a login, and the user is not yet logged in, then I re-assemble the url used to access this page, store it in a session value and redirect to the login controller. Upon successful login the login page looks to see if the session value is set, if so it redirects to that page.

Another way is to have your login controller look at the referrer, analyze it to see if it came from within your application, if so, save it in the session and redirect to it upon successful login.

-- Mike



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
[INVALID FOOTER]

Reply via email to