Patrick Patrick - 17 days ago 8
ASP.NET (C#) Question

asp.net mvc 3 serverside session variable

I need a serverside session variable in asp.net MVC 3. I know it is not the best way to fix things, but we need it security wise. I need to be sure that there is a value that is not tampered with. Is there any way to set a serverside session variable that can not be deleted or changed on the client?

Answer

You could use HttpContext.Current.Session.

Comments