You are designing a distributed application.
The application must store secure information that is specific to an individual user. The data must be
automatically purged when the user logs off.
You need to save transient information in a secure data store.
Which data store should you use?
A.
Session state
B.
Database storage
C.
Profile properties
D.
Application state
Explanation:
ASP.NET session state enables you to store and retrieve values for a user as the user navigates ASP.NET
pages in a Web application. HTTP is a stateless protocol. This means that a Web server treats each HTTP
request for a page as an independent request. The server retains no knowledge of variable values that were
used during previous requests. ASP.NET session state identifies requests from the same browser during a
limited time window as a session, and provides a way to persist variable values for the duration of that session.
https://msdn.microsoft.com/en-us/library/ms178581.aspx
It’s Database storage because it’s about a distributed application.
Database storage will NOT automatically purged when the user logs off