动态切换到无Cookie的会话状态asp.net? [英] Switch dynamically to cookieless session state asp.net?
问题描述
我们有我们需要动态切换到无Cookie session.The下面的MSDN链接的要求,表明我们可以通过修改webconfig的 http://msdn.microsoft.com/en-us/library/aa479314.aspx ,是否存在任何方法来动态切换到Cookie会话?任何帮助将是AP preciated ..谢谢
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
推荐答案
我不相信有。通常情况下,你只需检查,看看他们是否有使用Session.IsCookieless,如果启用了Cookie没有重定向到通知他们所需的cookie的网页。看看这个链接了解更多信息:
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:
这篇关于动态切换到无Cookie的会话状态asp.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!