<?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=LockLessSessionsMySQL</id>
	<title>LockLessSessionsMySQL - 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=LockLessSessionsMySQL"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=LockLessSessionsMySQL&amp;action=history"/>
	<updated>2026-08-21T18:04:54Z</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=LockLessSessionsMySQL&amp;diff=1849&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=LockLessSessionsMySQL&amp;diff=1849&amp;oldid=prev"/>
		<updated>2016-04-06T20:14:18Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you want RT to use Apache::Session::[[MySQL]] on no-locking mode, you will have to do the followings changes on your RT:&lt;br /&gt;
&lt;br /&gt;
* Create a file called [[LockLessMySQL]].pm in /path/to/your/rt/local/lib/Apache/Session, if Session folder doesn&amp;#039;t exists, first create it (mkdir -p /path/to/your/rt/local/lib/Apache/Session)&lt;br /&gt;
&lt;br /&gt;
* Add the below content on that file:&lt;br /&gt;
&lt;br /&gt;
 package Apache::Session::LockLessMySQL;&lt;br /&gt;
 &lt;br /&gt;
 use strict;&lt;br /&gt;
 use warnings;&lt;br /&gt;
 &lt;br /&gt;
 our $VERSION = &amp;#039;0.01&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 use base qw(Apache::Session);&lt;br /&gt;
 &lt;br /&gt;
 use Apache::Session;&lt;br /&gt;
 use Apache::Session::Lock::Null;&lt;br /&gt;
 use Apache::Session::Store::MySQL;&lt;br /&gt;
 use Apache::Session::Generate::MD5;&lt;br /&gt;
 use Apache::Session::Serialize::Storable;&lt;br /&gt;
 &lt;br /&gt;
 sub populate {&lt;br /&gt;
    my $self = shift;&lt;br /&gt;
 &lt;br /&gt;
    $self-&amp;amp;gt;{object_store} = new Apache::Session::Store::MySQL $self;&lt;br /&gt;
    $self-&amp;amp;gt;{lock_manager} = new Apache::Session::Lock::Null $self;&lt;br /&gt;
    $self-&amp;amp;gt;{generate}     = \&amp;amp;amp;Apache::Session::Generate::MD5::generate;&lt;br /&gt;
    $self-&amp;amp;gt;{validate}     = \&amp;amp;amp;Apache::Session::Generate::MD5::validate;&lt;br /&gt;
    $self-&amp;amp;gt;{serialize}    = \&amp;amp;amp;Apache::Session::Serialize::Storable::serialize;&lt;br /&gt;
    $self-&amp;amp;gt;{unserialize}  = \&amp;amp;amp;Apache::Session::Serialize::Storable::unserialize;&lt;br /&gt;
 &lt;br /&gt;
    return $self;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 1;&lt;br /&gt;
&lt;br /&gt;
* If you are in RT &amp;amp;lt;= 3.6&lt;br /&gt;
** Edit /path/to/your/rt/share/html/Elements/[[SetupSessionCookie]] and replace &amp;quot;Apache::Session::[[MySQL]]&amp;quot; with &amp;quot;Apache::Session::[[LockLessMySQL]]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* If you are in RT &amp;amp;gt; 3.7&lt;br /&gt;
** Edit /path/to/your/rt/lib/RT/Interface/Web/Session.pm and replace &amp;quot;Apache::Session::[[MySQL]]&amp;quot; (line 100) with &amp;quot;Apache::Session::[[LockLessMySQL]]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Restart your web server&lt;br /&gt;
&lt;br /&gt;
Thanks Rus for the hand :-)&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>