<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=SessionTimeout</id>
	<title>SessionTimeout - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=SessionTimeout"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=SessionTimeout&amp;action=history"/>
	<updated>2026-08-22T14:03:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=SessionTimeout&amp;diff=26963&amp;oldid=prev</id>
		<title>LB: Allow users to find Session Timeout settings more easy.</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=SessionTimeout&amp;diff=26963&amp;oldid=prev"/>
		<updated>2020-02-14T14:07:30Z</updated>

		<summary type="html">&lt;p&gt;Allow users to find Session Timeout settings more easy.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are several solutions to managing your Session in Request Tracker&lt;br /&gt;
&lt;br /&gt;
= RT 4.x =&lt;br /&gt;
&lt;br /&gt;
Tested only with 4.4.4, but probably also valid for older 4.x versions.&lt;br /&gt;
&lt;br /&gt;
== Option 1: AutoLogoff ==&lt;br /&gt;
&lt;br /&gt;
Set `AutoLogoff` Setting in your config, i.e. to 60 Minutes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Set($AutoLogoff, 60);&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
According to the RT_Config docs, setting this value automatically logs off any user after 60 minutes of inactivity (i.e. 60 minutes after your last action).&lt;br /&gt;
&lt;br /&gt;
Source: https://docs.bestpractical.com/rt/4.4.4/RT_Config.html#AutoLogoff&lt;br /&gt;
&lt;br /&gt;
== Option 2: SetupSessionCookie  ==&lt;br /&gt;
&lt;br /&gt;
Alternative: Set $Expires next to $SessionCookie in /opt/rt/share/html/Elements/SetupSessionCookie&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
$SessionCookie =&amp;gt; undef&lt;br /&gt;
$Expires =&amp;gt; &amp;#039;+8h&amp;#039;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means any session inactive for more than 8h (i.e. no action done in 8h), will expired. This alone is not enough to ensure the session won&amp;#039;t work anymore.&lt;br /&gt;
&lt;br /&gt;
You need to setup a cronjob to clean up old sessions, because the session cookies in your browser won&amp;#039;t have an expiry date and the sessions in the database will remain there, unless cleaned up by a cronjob.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/opt/rt/sbin/rt-clean-sessions --older 1H&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add --skip-user if you allow one user to possibly have multiple sessions at the same time, i.e. in different browsers or workstations. Add --debug to debug what is going an.&lt;/div&gt;</summary>
		<author><name>LB</name></author>
	</entry>
</feed>