博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
IBM会话设置和覆盖规则
阅读量:6501 次
发布时间:2019-06-24

本文共 3587 字,大约阅读时间需要 11 分钟。

  hot3.png

中文版地址:

Technote (troubleshooting)

Problem(Abstract)

It is possible to set the HTTP Session time-out in various places on the IBM® WebSphere® Application Server Administrative Console. It is also possible to set HTTP Session time-out for the application packaging process. 

Since Session time-out can be set in multiple places, it is necessary to understand how the ultimate Session time-out for an application is determined.

Cause

Application needs HTTP session time-out set.

Resolving the problem

The HTTP Session time-out can be set in the following places:

  • From the Administrative Console at the server, Enterprise application, and Web application levels
  • At the time when the application is packaged
  • In the application code
Setting the HTTP Session time-out from the Administrative Console  
1. To set the HTTP Session time-out at the server level, navigate to Servers > Application Servers >  
Your Server  
> Web Container > Session Management.  
In the Session time-out section of this window, you can select  
No time-out  or  
Set time-out  by clicking the appropriate radio button. If you choose to set the time-out, type the desired value in minutes in the box.  
2. To set the HTTP Session time-out at the Enterprise Application level, navigate to Applications > Enterprise Applications >  
Your Application  > Session Management.  
Check  
Override  in the Override Session Management section, then select to set the time-out and the time-out value. This sets the application session to overwrite those values set at the parent, which in this case is the Server level.  
3. To set the HTTP Session time-out at the Web Application level, navigate to Applications > Enterprise Applications >  
Your Application > Web Module >  
Your Web App.war  > Session Management.  
Check  
Override  in the Override Session Management section, then select to set the time-out and the time-out value. This sets the Application Session to overwrite those values set at the parent levels, which in this case is the Server or Enterprise Application level.  
After modifying these settings, save the master configuration.  
Setting HTTP Session time-out when application is packaged  
The application developer can also select to set the HTTP Session time-out parameter when the application is packaged. This value is stored in the  web.xml  file for the Web application.  
This setting overrides any session time-outs defined from the Administrative Console. Alter this setting by repackaging the application with a new value, or by modifying the web.xml file. The entry in the web.xml will be as follows:
60
Where the "session-timeout" is an integer value for the desired session time-out in minutes.
Setting HTTP Session time-out from the application code  
Finally, the HTTP Session time-out can be set in the application code. The programmer can invoke the setMaxInactiveInterval() method on HttpSession object to set the time-out value as desired. This setting overrides any time-out defined in the application package or made from the Administrative Console.  
HTTP Session time-out Override Precedence Summary  
The list below shows the precedence from which the final HTTP Session time-out is derived.  
1. Server Level Lowest level
2. Enterprise Application Overrides the Server Level if Override is selected
3. Web Application Overrides the Server and Enterprise Application settings if Override is selected
4. Application Level (web.xml) Overrides Server, Enterprise Application, and Web Application settings
5. Application Code Overrides all other settings

转载于:https://my.oschina.net/psuyun/blog/366948

你可能感兴趣的文章
在线html代码优化,网站seo优化html代码方法
查看>>
HTML如何把输入框变成必填值,required输入框为必填项
查看>>
在html中哪一个不是链接的目标属性,HTML试题
查看>>
android otg 挂载流程,android USB OTG功能如何打开及实现
查看>>
html属性board,pin_board.html
查看>>
html定位有几种,POSITION定位有哪几种?各有什么特点?
查看>>
背锅侠逆袭之路
查看>>
演示:使用协议分析器取证IPv6的报文结构
查看>>
oracle 11gr2 rac中的4种IP解说
查看>>
为什么你找不到工作?
查看>>
20 个免费的 jQuery 的工具提示插件:
查看>>
只有在北方的中国帝国能力享受免费的商业课程:财富规划法与愿景
查看>>
汇编语言的应用
查看>>
device platform 相应的表
查看>>
php des 加密解密实例
查看>>
【Mac】Mac键盘实现Home, End, Page UP, Page DOWN
查看>>
实战使用Axure设计App,使用WebStorm开发(1) – 用Axure描述需求
查看>>
安德鲁斯----多媒体编程
查看>>
swift版的元组
查看>>
[zz]在linux中出现there are stopped jobs 的解决方法
查看>>