I am using the simple authentication thing.,,..
Using this in config file....
<authentication mode="Forms">
<forms name=".COOKIE" loginUrl="login.aspx" protection="All" path="/" timeout="480"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
The user who is not logged in should be sent back to login.aspx. BUT currently it is not happening. User is able to go to any page. While it is working well in my local but not working on server. What is the thing which I am missing...
Still seeking for the answer......
I would deny unauthenticated users by default, only make exceptions for the login page and other resources needed.
Example:
...
Seems like the config is all right. You might check if the machine.config or the IIS ASP.NET settings are overriding the Web.config you're using.
Make sure the
FormsAuthentication
module is added to thehttpMdules
collection. You might try to add it your self in yourweb.config
, in case it has been removed frommachine.config
. This module is what handles the redirect to what you have specified underauthentication/forms
Couple of things to try:
<allow users="*"/>