What should you do?

You are creating ASP.NET applications by using the .NET Framework 3.5.

You design a Web application that uses Forms-based authentication. The application provides interactive content to authenticated users, and premium content to subscribers. The application contains a subdirectory named Premium.

By default, all authenticated users are assigned the Siteuser role. Users who pay a subscription fee are assigned to the Subscriber role.

You need to ensure that only those users who are assigned to the Subscriber role can access the Premium subdirectory.

What should you do?

You are creating ASP.NET applications by using the .NET Framework 3.5.

You design a Web application that uses Forms-based authentication. The application provides interactive content to authenticated users, and premium content to subscribers. The application contains a subdirectory named Premium.

By default, all authenticated users are assigned the Siteuser role. Users who pay a subscription fee are assigned to the Subscriber role.

You need to ensure that only those users who are assigned to the Subscriber role can access the Premium subdirectory.

What should you do?

A.
in the Premium subdirectory, add the following code fragment to the Web.config file.
<deny users=”Siteuser” />

B.
in the Premium subdirectory, add the following code fragment to the Web.config file.
<allow roles=”Subscriber” /> <deny users=”*” />

C.
In the Premium subdirectory, add the following code fragment to the Web.config file.
<deny users=”*” />
<allow roles=”Subscriber” />

D.
In the application root directory, add the following code fragment to the Web.config file. <allow user=” Siteuser; PremiunA Subscriber” />



Leave a Reply 0

Your email address will not be published. Required fields are marked *