Re: FormsAuthentication doesn't automatically redirect upon timeout
- From: "Coskun SUNALI [MVP]" <Coskun@xxxxxxxxxx>
- Date: Wed, 6 Feb 2008 23:10:33 +0200
Yes, ASP.NET needs to know if the visitor is authorized to view that path or not. Glad that you found what was wrong.
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
"Christine Nguyen" <christine.nguyen@xxxxxxxxx> wrote in message news:egdpe%23PaIHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
I figured out what the problem is, I needed to add the following setting to the web.config.
<authorization>
<deny users="?" />
</authorization>
Thanks for trying to help!
Christine
"Christine Nguyen" <christine.nguyen@xxxxxxxxx> wrote in message news:exNMC2OaIHA.208@xxxxxxxxxxxxxxxxxxxxxxxHello,
Here is a sample website I set up to illustrate what's going on. Thanks!
-Christine
"Coskun SUNALI [MVP]" <Coskun@xxxxxxxxxx> wrote in message news:eWOSU3KaIHA.4196@xxxxxxxxxxxxxxxxxxxxxxxHi,
Sorry for my previous message. It has nothing to do with your problem.
Can you please attach a project in a zip file to reproduce the problem you
have.
I will try to correct it and send it back.
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
"Coskun SUNALI [MVP]" <Coskun@xxxxxxxxxx> wrote in message
news:%23$XUljKaIHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Yes. If you have a HttpModule that logs and then cleans the errors on the
server, ASP.NET doesn't redirect.
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
<christine.nguyen@xxxxxxxxx> wrote in message
news:b25bf414-af61-4080-b0f9-96999984832b@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I do specify the login url in web.config, but for whatever reason it
doesn't redirect upon timeout when a secured resource is accessed.
Instead it throws an exception when I try to access and use the value
in HttpContext.Current.User.Identity.Name (which is now empty). This
is why i put code into the onLoad in order to prevent the exception.
Is there a reason why it wouldn't redirect even though I have the
login url specified in web.config?
Thanks,
Christine
.
- References:
- FormsAuthentication doesn't automatically redirect upon timeout
- From: christine . nguyen
- Re: FormsAuthentication doesn't automatically redirect upon timeout
- From: Coskun SUNALI [MVP]
- Re: FormsAuthentication doesn't automatically redirect upon timeout
- From: christine . nguyen
- Re: FormsAuthentication doesn't automatically redirect upon timeout
- From: Coskun SUNALI [MVP]
- Re: FormsAuthentication doesn't automatically redirect upon timeout
- From: Coskun SUNALI [MVP]
- Re: FormsAuthentication doesn't automatically redirect upon timeout
- From: Christine Nguyen
- FormsAuthentication doesn't automatically redirect upon timeout
- Prev by Date: Re: sending two parameters over to another page
- Next by Date: Re: sending two parameters over to another page
- Previous by thread: Re: FormsAuthentication doesn't automatically redirect upon timeout
- Next by thread: hosting mp3 files in an aspx page
- Index(es):
Relevant Pages
|