GSSP-NET · Question #478
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…
The correct answer is B. The session will expire after 60 minutes. D. The session lifetime will be reset periodically. See the full explanation below for the reasoning.
Question
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.
Options
- AThe session will expire after 60 seconds.
- BThe session will expire after 60 minutes.
- CThe session will expire after 60 hours.
- DThe session lifetime will be reset periodically.
- EThe session will never expire.
- FOnce the session lifetime is set, it will not change.
How the community answered
(44 responses)- A2% (1)
- B75% (33)
- C14% (6)
- E7% (3)
- F2% (1)
Community Discussion
No community discussion yet for this question.