Open Sourcing DOS 4
1 week ago
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"/>
<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>
Post a Comment