Asp.net mvc 4 - Need to use sessions but can't

2019-03-02 02:32发布

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?

1条回答
成全新的幸福
2楼-- · 2019-03-02 03:04

Edit your web.config

<sessionState cookieless="true" timeout="20" />
查看更多
登录 后发表回答