Switch dynamically to cookieless session state asp.net?

瘦欲@ 提交于 2019-12-24 03:07:20

问题


We have a requirement in which we need to switch dynamically to cookieless session.The following msdn link shows that we can enable cookiless sessions by modifying webconfig http://msdn.microsoft.com/en-us/library/aa479314.aspx ,Is there exist any method to switch dynamically to cookieless session?Any help would be appreciated.. Thanks


回答1:


I don't believe there is. Typically, you would just check to see if they have cookies enabled by using Session.IsCookieless and if not redirect them to a page informing them that cookies are required. Check out this link for more info:

Cookieless Session State Asp.net



来源:https://stackoverflow.com/questions/10433179/switch-dynamically-to-cookieless-session-state-asp-net

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