How can I change the Session timeout?
Last modified by Eleni Cojocariu on 2026/11/09 14:30
The Session is controlled by the Servlet Container, not by XWiki. Usually the default timeout is set to 30 minutes. So just configure your web.xml file with the Session timeout (in minutes) you wish to use. To do so:
- Stop the servlet container.
- Change the value in the web.xml file. Replace the default value from:
... </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> ... - Start again the servlet container.
Do not edit WEB-INF/web.xml while the servlet container is running. The container may detect the change and reload the web application, which can cause errors such as:
java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [javax.imageio.IIOParam].