Friday, March 16, 2012

Login redirect not working

This works in my VS IDE and was temporarily worknig on my publsied web site,
but now the redirect to ~/secure/Default.aspx always returns to my login
page. Here's a partof the web.config file taht deal with forms
authentication (note that I am using SQL Server membership and role
providers):
<authentication mode="Forms">
<forms name="CookieName" loginUrl="UserLogin.aspx"
defaultUrl="~/secure/Default.aspx" timeout="15" path="/" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
Thx
--
TimAnd the answer is: the hostname must not contain an underscore in it!
www.web_server.com is not allowed, whereas www.web-server.com is allowable.
Only letters and the hyphen and period characters are allowed in the hostnam
e.
--
Tim
"AAOMTim" wrote:

> This works in my VS IDE and was temporarily worknig on my publsied web sit
e,
> but now the redirect to ~/secure/Default.aspx always returns to my login
> page. Here's a partof the web.config file taht deal with forms
> authentication (note that I am using SQL Server membership and role
> providers):
> <authentication mode="Forms">
> <forms name="CookieName" loginUrl="UserLogin.aspx"
> defaultUrl="~/secure/Default.aspx" timeout="15" path="/" />
> </authentication>
> <authorization>
> <deny users="?" />
> <allow users="*" />
> </authorization>
> Thx
> --
> Tim

0 comments:

Post a Comment