中文版地址:
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
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.60
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 |