views:

109

answers:

1

Is there an equivalent to EnableSessionState=”ReadOnly” in ASP.NET MVC? This directive was originally used in ASP.NET webforms but I find no trace of it in MVC.

A: 

Duplicate http://stackoverflow.com/questions/1172850/specifying-read-only-session-in-asp-net-mvc

Soviut
Actually the duplicate is this one:http://stackoverflow.com/questions/1464203/disable-session-state-per-request-in-asp-net-mvc. The one you posted (in an answer, no less) is a duplicate of a duplicate.
Robert Harvey
Those posts don't quite answer the question though. It tells you how to disable session binding on requests but doesn't describe how to load session in ReadOnly mode.
Andrew Young