# Apache JSPWiki

Saturday August 27, 2016

Change JSPWiki's inactive session timeout value

By default, inactive JSPWiki sessions are logged out after 30 minutes – quite often too short. The value can be adjusted by adding the following entry to the web.xml file (where the "session-timeout" value is in minutes):

<session-config>
<session-timeout>60</session-timeout>
</session-config>

This sets inactive sessions to be logged out after one hour.

Alternatively, a session timeout value can be configured in the application server. For example, on Payara Server, go to "server-config → Web Container", and under the "Session Properties" tab set the session timeout value in seconds (click to enlarge):

Tip: You can change the "Session Timeout" message shown by JSPWiki when the timeout occurs – just create the SessionExpired page. It's probably a good idea to also add an [{ALLOW edit Admin}] ACL entry to the page.

Comments are closed for this entry.