Thursday, February 11, 2010

Explain about Membership Security

For storing security, ASP.NET 3.5 provides a system for storing username and encrypted passwords in a special database. We can set this security in different ways using Visual Studio 2008. Many of the most important elements are set up automatically, including with the default name as ASPNETDB.MDF.
The password is stored in a database, ASPNETDB.MDF, in a table named aspnet_Users

Examples: -


--more code
<system.web>
<authentication mode="Forms" />
<authorization>
<deny users="?"/>
</authorization>
--more code


<!-- Web.config for Registration -->
<configuration>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</configuration>

No comments:

Post a Comment