session持久化设置
来源:互联网 发布:python buffer类型 编辑:程序博客网 时间:2024/06/12 19:45
原文地址:点击打开链接
Apache Tomcat Configuration Reference
The Manager Component
Special Feature:
Persistence Across Restarts
pathname
attribute. All such saved sessions will then be deserialized and (assuming they have not expired in the mean time) when the application reload is completed. In order to successfully restore the state of session attributes, all such attributes MUST implement the java.io.Serializable
interface. You MAY cause the Manager to enforce this restriction by including the<distributable>
element in your web application deployment descriptor (/WEB-INF/web.xml
).
不论Apache Tomcat正常关闭还是重启,或者是应用程序重新加载被触发,标准管理实现类将尝试序列化当前所有的会话,通过pathname属性存储到磁盘文件上。所有这样的会话将在应用程序重新加载之后被反序列化并且激活。
为了成功的还原所有会话属性,所有的属性必须实现java.io.Serializable接口。你可以在你的web程序描述部署符中改变Manager实现类来强制执行这一约束。
Disable Session Persistence
As documented above, every web application by default has standard manager implementation configured, and it performs session persistence across restarts. To disable this persistence feature, create a Contextconfiguration file for your web application and add the following element there:
<Manager pathname="" />
如上文所述,每一个web程序默认会通过manager实现类配置,并且通过重启表现出session持久化特性。要使使这一特性失效,可以为你的web程序创建一个Context配置文件,加入以下元素:
<Manager pathname="" />
- session持久化设置
- java web 设置持久session
- Session持久化
- Session持久化
- Session持久化
- Session持久化方法
- Session持久化
- Session持久化
- tomcat session 持久化
- session 的持久化
- Servlet Session持久化
- Session持久化
- Session持久化
- Tomcat7 session 持久化
- tomcat session 持久化
- tomcat session持久化
- Session的持久化
- session 持久化问题
- 将Qt 动态链接生成的exe及依赖dll打包方法
- (俄)快车AM3 140.0°E
- java线程学习笔记
- 陌上花开,聆听那一曲旧时光的伤
- 学习JQuery - 2
- session持久化设置
- QT程序打包发布 - 免安装(MolePro Box)
- service的启动控制
- android关闭应用
- JUnit简单使用教程
- 文本分类资源和程序开源共享
- Checkstyle 系列之认识 Checkstyle
- android常用库
- 从SQL语言的分类谈COMMIT和ROLLBACK的用法