|
From: Chris W. <la...@us...> - 2001-11-06 08:43:42
|
Update of /cvsroot/openinteract/OpenInteract/OpenInteract/Session
In directory usw-pr-cvs1:/tmp/cvs-serv14595/Session
Modified Files:
DBI.pm
Log Message:
cosmetic
Index: DBI.pm
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/OpenInteract/Session/DBI.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DBI.pm 2001/10/01 22:08:52 1.5
--- DBI.pm 2001/11/06 04:26:07 1.6
***************
*** 9,18 ****
$OpenInteract::Session::DBI::VERSION = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/);
! sub _create_session {
my ( $class, $session_id ) = @_;
my $R = OpenInteract::Request->instance;
my $session_class = $R->CONFIG->{session_info}{class};
my $session_params = $R->CONFIG->{session_info}{params} || {};
! $session_params->{Handle} = $R->db;
# Detect Apache::Session::MySQL and modify parameters
--- 9,18 ----
$OpenInteract::Session::DBI::VERSION = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/);
! sub _create_session {
my ( $class, $session_id ) = @_;
my $R = OpenInteract::Request->instance;
my $session_class = $R->CONFIG->{session_info}{class};
my $session_params = $R->CONFIG->{session_info}{params} || {};
! $session_params->{Handle} = $R->db( 'main' );
# Detect Apache::Session::MySQL and modify parameters
***************
*** 20,24 ****
if ( $session_class =~ /MySQL$/ ) {
! $session_params->{LockHandle} = $R->db;
$R->DEBUG && $R->scrib( 2, "Using MySQL session store, with LockHandle parameter" );
}
--- 20,24 ----
if ( $session_class =~ /MySQL$/ ) {
! $session_params->{LockHandle} = $session_params->{Handle};
$R->DEBUG && $R->scrib( 2, "Using MySQL session store, with LockHandle parameter" );
}
|