Does ASP.NET Session state work without cookies?

时间秒杀一切 提交于 2019-12-10 22:23:18

问题


According to MSDN:

By default, the SessionID value is stored in a non-expiring session cookie in the browser.

If I am trying to use Session State (I'm not using Cookieless Session IDs) and a users browser does not accept cookies, will Session State work?


回答1:


According to this it is supported: http://msdn.microsoft.com/en-us/library/aa479314.aspx

<sessionState cookieless="true" />

The downside is that the session ID is placed in every URL used by the application:

http://yourserver/folder/(session ID here)/default.aspx

See this SO answer for additional details: Absolute URL Cookieless



来源:https://stackoverflow.com/questions/12719352/does-asp-net-session-state-work-without-cookies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!