Changing the default session timeout

By default, each active user session lasts for 5 hours or 300 minutes of idle time. This means a user can log in and leave the computer for up to 5 hours and their browser session will still remain active.

In this recipe, we will look at how to change the default session timeout.

Getting ready

Since we will be making direct changes to a JIRA file, make sure you create backups for any files that are modified. This recipe will also require a restart of JIRA, so plan this during a time slot that will not affect your users.

How to do it…

Proceed with the following steps to change the session timeout settings in JIRA:

  1. Open the web.xml file from the <JIRA_INSTALL>/atlassian-jira/WEB-INF directory in a text editor.
  2. Locate the following lines and change the value of session-timeout to the desired number in minutes:
    <session-config>
        <session-timeout>300</session-timeout>
    </session-config>
  3. Restart JIRA for the changes to apply.

How it works…

JIRA uses the standard Java session configuration in the web.xml file, which defines the session timeout in minutes. You can refer to this at the following location:

http://docs.oracle.com/cd/E13222_01/wls/docs81/webapp/web_xml.html#1017275

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset