将会话模式从InProc更改为Pro-of-Proc后,不会触发Session_OnStart事件 [英] Session_OnStart event not firing after changing sessionmode from InProc to out-of-Proc

查看:112
本文介绍了将会话模式从InProc更改为Pro-of-Proc后,不会触发Session_OnStart事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在对sessionMode的web.config中进行了更改,证明了状态服务器的所有属性后,我重新编译并部署了我的网站.现在,我在Session_OnStart事件中有代码,但是该事件根本没有触发.

将sessionMode从InProc更改为stateserver/sql服务器时,我还需要做些额外的事情吗?

After making changes in web.config for sessionMode, proving all attributes for stateserver, I re-compiled and deployed my web site. Now I have code in Session_OnStart event, but that event is not firing at all.

Do I need to do something extra while changing sessionMode from InProc to stateserver/sql server?

Any other possible reason for this issue?

推荐答案

Session_OnStart事件在"StateServer"模式下工作正常,您的问题出在其他地方.

在负载平衡的应用程序(WebFarm)中,必须确保所有应用程序都使用相同的< machinkey>.设置,但这在这里不是问题.

有没有错误?您在Session_OnStart事件中正在做什么?
Session_OnStart event works fine in "StateServer" mode, your problem is elsewhere.

In a load-balanced application (WebFarm) you have to make sure all applications use the same <machinkey> setting, but this is not an issue here.

Are there any errors? What are you doing in Session_OnStart event?


这篇关于将会话模式从InProc更改为Pro-of-Proc后,不会触发Session_OnStart事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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