Where should you store the credentials?

You are developing an ASP.NET MVC application that uses forms authentication.
Authentication credentials must be encrypted and secure.
You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution.
Choose all that apply.)

You are developing an ASP.NET MVC application that uses forms authentication.
Authentication credentials must be encrypted and secure.
You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution.
Choose all that apply.)

A.
In TempData

B.
In Session

C.
In ViewData

D.
In a cookie



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Steven

Steven

I think it should be B and D. ViewData lifetime is too short (per request).

chicco

chicco

Correct answer is: B, D

FigArt

FigArt

I’d say B and D too

TempData and ViewData are too short-lived.

Session is secure and cookies can be encrypted and secured over HTTPS