Simplest way to add forms authentication to you Web.config in ASP .NET, when using AspNetSqlMembershipProvider

If you’ve got a website and this website contains a Login.aspx and a Default.aspx page in the root. The simplest way to deny all unauthenticated user access to the website is adding the following to you’re Web.config: <system.web> <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Default.aspx" cookieless="UseDeviceProfile" …