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
Post a Comment