I am working on an ASP.NET MVC 4 application.

I need to use the session for storing various things. My mandate is to not use cookies.

Is there a way I can work through this? I have been told that ASP.NET MVC 4 will not work in cookie-less mode.

Is there any other alternative way?

有帮助吗?

解决方案

Edit your web.config

<sessionState cookieless="true" timeout="20" />
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top