0
You can also override other default settings by setting custom values in web.config. Some other default settings are
Change the default value to override the default behavior.
Posted on Saturday, September 6, 2008 at 1:27 PM.
By default Asp.NET uses Login.aspx as its default Login page. That means if you want to access a page that you are not authorized to access you will be redirected to Login.aspx. Also if you click a Login Status control you will be redirected to Login.aspx.
You can easily override this feature and use a custom page (say Default.aspx) instead of Login.aspx as default login page.
To do so Simply add the following code in Authentication section of web.config<forms loginUrl="Default.aspx"/>
You can also override other default settings by setting custom values in web.config. Some other default settings are
<forms name=".ASPXAUTH"
loginUrl="login.aspx"
defaultUrl="default.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
cookieless="UseDeviceProfile"
domain=""
enableCrossAppRedirects="false">
<credentials passwordFormat="SHA1" />
</forms>
Change the default value to override the default behavior.