WebPart中使用Session
2005-04-04 17:10
351 查看
using Session in a webPart.
很简单,两步:
在web.config中修改
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
打开这个控制
<!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
即可。
很简单,两步:
在web.config中修改
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
打开这个控制
<!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
即可。
相关文章推荐
- 使用shiro的session后,HttpSession.getServletContext() 获取一直是null的解决方法
- tomcat使用memcached完成集群(session共享实现方式)
- MyBatis中SQLSessionFactory和SqlSession的简介以及配置文件使用(二)
- 使用spring-session、redeis实现跨二级域名单点登录
- Spring使用OpenSessionInViewFilter解决Hibernate的lazy延时加载问题
- Action中使用session方法
- webpy中使用session
- SpringMVC中@ModelAttribute和@SessionAttributes注解的使用
- 使用ThreadLocal模式管理Hibernate的Session
- MOSS 2007 入门(6) : 使用一个Code-behind的用户控件作为WebPart
- Winform和webserver之间sessionID的使用!
- asp.net session的使用与过期实例代码
- 初步使用session和cookie
- 使用session实现网站N天免登陆(转载)
- tomcat-redis-session-manager的使用
- PHP5中Cookie与 Session使用详解
- 使用session来实现用户分布式登录的细节
- 使用CInternetSession 获取网页内容。。。解决了ReadString时的乱码
- .net下导致Session失效的一种情况:js教本中使用window.open和window.showModalDialog时需要注意
- 登陆权限验证Session和Cookie用法及BasePage类使用