如何将SessionMode设置为StateServer

编程入门 行业动态 更新时间:2024-10-09 16:30:57
本文介绍了如何将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

本文发布于:2023-11-25 21:44:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631459.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设置为   如何将   SessionMode   StateServer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!