D
Derrick
Hello all;
Just starting out with ASP.NET. I want to protect a bunch of forms in a
folder using Forms Authentication. This much I have working. So when user
trys to access www.mywebsiteURL.com/securefolder/securepage.aspx they are
automatically routed to www.mywebsiteURL.com/securefolder/login.aspx.
As part of the login process, I download the user's unique identifier
(user_id) from a SQL DB. I want other pages to have access to this
information (in case they need to go to the DB again), without using
cookies. I figured the best method was to stick the ID in the URL as a
querystring parameter. But my question is, how can the login page append
this querystring to the URL, if the URL currently does not have any
querystring parameters?
I.e., user surfs to the www.mywebsiteURL.com/securefolder/securepage.aspx
page, gets directed to www.mywebsiteURL.com/securefolder/login.aspx, and in
turn should get routed to
www.mywebsiteURL.com/securefolder/securepage.aspx?user_id=12. The
FormsAuthentication.GetRedirectURL is (obviously) read-only - is there any
way to change it? I also tried catching the Authenticated event and doing
Response.Redirect, but that event isn't being fired for some reason...
I've googled with no luck
Thanks!
Derrick
Just starting out with ASP.NET. I want to protect a bunch of forms in a
folder using Forms Authentication. This much I have working. So when user
trys to access www.mywebsiteURL.com/securefolder/securepage.aspx they are
automatically routed to www.mywebsiteURL.com/securefolder/login.aspx.
As part of the login process, I download the user's unique identifier
(user_id) from a SQL DB. I want other pages to have access to this
information (in case they need to go to the DB again), without using
cookies. I figured the best method was to stick the ID in the URL as a
querystring parameter. But my question is, how can the login page append
this querystring to the URL, if the URL currently does not have any
querystring parameters?
I.e., user surfs to the www.mywebsiteURL.com/securefolder/securepage.aspx
page, gets directed to www.mywebsiteURL.com/securefolder/login.aspx, and in
turn should get routed to
www.mywebsiteURL.com/securefolder/securepage.aspx?user_id=12. The
FormsAuthentication.GetRedirectURL is (obviously) read-only - is there any
way to change it? I also tried catching the Authenticated event and doing
Response.Redirect, but that event isn't being fired for some reason...
I've googled with no luck
Thanks!
Derrick