Re: forms authentication redirect problem.
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 19 Feb 2006 19:13:25 +0000 (UTC)
Hi,
RedirectToLoginPage looks for the returnUrl query parameter. If none is there you have to do the redirect on your own
a) You should check for null not "" on the query string
b) use FormsAuthentication.SetAuthCookie and do the redirect manually to decouple what Rtlp does
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi i've made a loginpage and a protected one. If the user tries to
enter the protected page he gets redirected to the loginpage and at
this point everything works fine.
But when the user goes directly to the loginpage and types his pasword
it fails to login.
it tried to solve this with following code but this doesn't work
properly
if(Request.Querystring ("ReturnUrl")= "" ) then
Response.redirect("reservatie.aspx")
lblResult.Text = "juist maar niet ingelogd"
else
FormsAuthentication.RedirectFromLoginPage (TextBox1.Text, True)
end if
Anyone an idea what i have to change to get this to work.
Thanks
.
- Follow-Ups:
- Re: forms authentication redirect problem.
- From: Donkey
- Re: forms authentication redirect problem.
- References:
- forms authentication redirect problem.
- From: Donkey
- forms authentication redirect problem.
- Prev by Date: forms authentication redirect problem.
- Next by Date: Re: forms authentication redirect problem.
- Previous by thread: forms authentication redirect problem.
- Next by thread: Re: forms authentication redirect problem.
- Index(es):
Relevant Pages
|
|