[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-61-g669cc74
Ruslan Zakirov
ruz at bestpractical.com
Sat Dec 26 01:25:08 EST 2009
The branch, 3.8-trunk has been updated
via 669cc7447cd011cf1dd896ab9517634c8ea0bd59 (commit)
from 838360cb147cb1ec810ff7975ec63e39ebef9bb9 (commit)
Summary of changes:
lib/RT/Interface/Web/Session.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 669cc7447cd011cf1dd896ab9517634c8ea0bd59
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Sat Dec 26 09:23:09 2009 +0300
* sessions ended up in /tmp/ in some cases
if database is Pg or mysql but ApacheSessionClass option is
set to ::File then sessions were storred in /tmp/
diff --git a/lib/RT/Interface/Web/Session.pm b/lib/RT/Interface/Web/Session.pm
index 4998c34..1e0e6d5 100644
--- a/lib/RT/Interface/Web/Session.pm
+++ b/lib/RT/Interface/Web/Session.pm
@@ -111,8 +111,8 @@ new session objects.
=cut
sub Attributes {
-
- return $_[0]->Backends->{RT->Config->Get('DatabaseType')} ? {
+ my $class = $_[0]->Class;
+ return !$class->isa('Apache::Session::File') ? {
Handle => $RT::Handle->dbh,
LockHandle => $RT::Handle->dbh,
Transaction => 1,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list