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):

jspwiki-sessiontimeout-1.png

jspwiki-sessiontimeout-2.png

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:

Post a Comment:
Comments are closed for this entry.

Calendar

Search

Hot Blogs (today's hits)

Tag Cloud

Categories

Feeds

Links

Navigation