Change the Tomcat WebVoyage OPAC session timeout
- Product: Voyager
- Relevant for Installation Type: Multi-Tenant Direct, Dedicated-Direct, Local, TotalCare
Question
How to change the Tomcat WebVoyage OPAC session timeout period?
Answer
The timeout is managed in two different files. The values set in these two files need to be coordinated:
- webvoyage.properties
- web.xml
In webvoyage.properties change the timeout.time value in this stanza to what you want your timeout in WebVoyage to be (in the following example it is 4 minutes):
#==============================
# Timeout configuration.
#==============================
# How many minutes before an idle WebVoyage session times out?
# Must be less than Tomcat's session timeout, defined in web.xml.
timeout.time=4
# How many minutes before timeout should the user be warned? Should be less than
the timeout.time value.
timeout.grace=2
# Where do we go when a session times out?
timeout.page=exit.do
Note that the timeout.time value set in webvoyage.properties needs to be less than the session-timeout value set in the web.xml file (in the following example it is 30 minutes):
<!-- ==================== Default Session Configuration ================= -->
<!-- You can set the default session timeout (in minutes) for all newly -->
<!-- created sessions by modifying the value below. -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
- Article last edited: 15-Oct-2020