It is a common requirement in the design of web applications that parts of a web site are available only to certain privileged users. In practice, this is most commonly implemented by having users log into the site to determine their identity; this process is known as authentication.
Once a user's identity has been established, they are then given access to the parts of the site that their user account allows; this is known as membership.
In this chapter, we will see how the WebMatrix
WebSecurity helper can be used to implement authentication and membership functions in a web site. We will learn how to ...