问题
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