Mega Code Archive

 
Categories / ASP.Net / Development
 

Forms Authentication

<configuration>    <system.web>       <authentication mode="Forms">          <forms             name="[name]"             loginUrl="[url]"             protection="[All|None|Encryption|Validation]"             timeout="30"             path="/"             requireSSL="[true|false]"             slidingExpiration="[true|false]"             cookieless="UseCookies|UseUri|AutoDetect|UseDeviceProfile"             defaultUrl="[url]"             domain="string"             >             <credentials passwordFormat="[Clear, SHA1, MD5]">               <user name="[UserName]" password="[password]"/>             </credentials>          </forms>       </authentication>    </system.web> </configuration>