会议不能在通用处理器.ashx的工作在Firefox [英] Session Not working in Generic Handler .ashx in Firefox

查看:118
本文介绍了会议不能在通用处理器.ashx的工作在Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建ashx的这实施IRequiresSessionState,这样我就可以在ASHX创建会话变量,它的工作在IE浏览器,但在Firefox不起作用。
当访问其他网页该会话变量是NULL。

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.

什么想法? THX。

推荐答案

请在web.config中启用了Cookie

Make cookies enabled in web.config

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

这篇关于会议不能在通用处理器.ashx的工作在Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆