Mark works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. MyApp1 allows users to view and purchase company products.
It includes several pages. The start-up page of the application is Page1.aspx. He configures the application’s Web.config file to use form-based authentication.
Mark wants users to log on to Page1.aspx by providing their user names and passwords. To accomplish this, he creates an ASP.NET page named UsersLogIn.aspx that allows each user to specify a user name and password. He then writes the following syntax in the Web.config filE.
<authentication mode="Forms">
<forms name="MyName"
loginUrl="/UsersLogIn.aspx"
protection="All"
timeout="60"
slidingExpiration="true">
</forms>
</authentication>
What will be the result? Each correct answer represents a part of the solution. Choose two.
A . The session will expire after 60 seconds.
B . The session will expire after 60 minutes.
C . The session will expire after 60 hours.
D . The session lifetime will be reset periodically.
E . The session will never expire.
F . Once the session lifetime is set, it will not change.
Answer: B,D
Leave a Reply