asp.net mvc 4 - MVC - Store secure information -
i come cross question during mvc studies. possible b correct answer?
you designing distributed application. application must store secure information specific individual user. data must automatically purged when user logs off. need save transient information in secure data store. data store should use?
a. session state
b. database storage
c. profile properties
d. application state
thanks,
if "the data must automatically purged when user logs off", there literally no need b or c. d (application state) single across users, best bet a.
from msdn
...application state useful place store small amounts of often-used data not change 1 user another. information on saving data on per-user basis see asp.net session state overview , asp.net profile properties overview. [ref]
this indicates , c possibilities, -
[profile properties] similar session state, except profile data not lost when user's session expires. [ref]
which not satisfy, "data must automatically purged when user logs off.", leaving appropriate answer.
Comments
Post a Comment