如何将SessionMode设置为StateServer [英] How to set SessionMode to StateServer

查看:65
本文介绍了如何将SessionMode设置为StateServer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于会话到期问题,我将SessionMode更改为"StateServer".我在iis中进行了所有设置,并从管理工具启动了服务中的"ASP.Net状态服务".
甚至面临诸如无法使用DAL访问数据库中的数据之类的问题.

我的项目是3轮胎架构.
使用DAL,BAL和UI.正如我在某些帖子中所读到的,我们必须将DAL和BAL类转换为可序列化的.我们不能将sessionMode转换为SessionState,而无需将所有类都转换为可序列化的..

pleae帮助我以更好的方式将SessionMode转换为StateServer或SQLServer.

谢谢

due to session expiry problem i changed SessionMode to "StateServer". i did all the settings in iis and started "ASP.Net State service" in services from Admin tools.
even am facing problems like not able to access data from database using DAL.

my project is 3 tire architecture.
using DAL, BAL and UI. as i read in some post that we have to convert DAL and BAL classes to serializable. can.t we convert sessionMode to SessionState with out converting all the classes to serializable..

pleae help me in better way to convert SessionMode to StateServer or SQLServer.

Thanks

推荐答案

在这里看看这些:
MSDN:会话状态模式 [ CP:在SQL Server上配置ASP会话状态 [ ^ ]
Here have a look at these:
MSDN: Session-State Modes[^]
CP: Configuring ASP session state on SQL server[^]


这篇关于如何将SessionMode设置为StateServer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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