asp.net - Can't redirect to login page even if I set that in LoginURL web.config -


have old asp.net web app running in windows server 2003 , iis 6.

i set web.config in way in order force redirection login.aspx:

<authentication mode="forms">             <forms name="coocky" loginurl="login.aspx" protection="all" path="/" timeout="60" slidingexpiration="false"/> </authentication> 

however, when user tries go page this:

http://myurl/blabla/anotherpage.aspx 

there's no redirection @ login.aspx.

also, in web.cofing there no exception pages like:

<location path="default.aspx">         <system.web>             <authorization>                 <allow users="?"/>             </authorization>         </system.web> </location> 

i don't know missing in order achieve redirection.

you need authorization node well, in order define denying access to, e.g.:

<authorization>   <deny users="?"/> </authorization> 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -