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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -