Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As well as providing a means to register, authenticate, and administer individual user accounts, the WebMatrix membership system also provides ways to restrict access to areas of the site. In this section, we will see the various ways of achieving this at different levels, both for individual authenticated users and groups.
The most basic form of content protection is achieved by restricting pages and folders to allow access only to authenticated users. By protecting content in this way, we are not concerned with which account a user is logged in with, only that they are logged in at all.
We have already seen an example of page level access restriction in the Changing Passwords section. In the code block at the top of the page are the following lines of code: