Session Not working in Generic Handler .ashx in Firefox

独自空忆成欢 提交于 2019-12-05 03:29:17

问题


I have created .ashx which implemented IRequiresSessionState, so I can create session variables in that ashx, it worked in IE, but doesn't work in Firefox. When access this session variable from other pages it's NULL.

any idea? thx.


回答1:


Perhaps you don't allow cookies in Firefox. Check that! If you don't want to enable cookies, enable the cookieless session.




回答2:


Make cookies enabled in web.config

<system.web>
<sessionState cookieless="true"></sessionState>
</system.web>


来源:https://stackoverflow.com/questions/2729825/session-not-working-in-generic-handler-ashx-in-firefox

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