Permalink
Browse files

Fix by Jesse Scott so that database sessions respect sessiontimeout s…

…etting. Closing bug 5912
  • Loading branch information...
1 parent 1966048 commit bf9cdc2b906f836178b2846a99278d60ce401990 gustav_delius committed Sep 1, 2006
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/setup.php
View
@@ -309,6 +309,10 @@
$ADODB_SESSION_PWD = $CFG->dbpass;
$ADODB_SESSION_DB = $CFG->dbname;
$ADODB_SESSION_TBL = $CFG->prefix.'sessions';
+ // Respect sessiontimeout setting for DB sessions.
+ if (!empty($CFG->sessiontimeout)) {
+ $ADODB_SESS_LIFE = $CFG->sessiontimeout;
+ }
require_once($CFG->libdir. '/adodb/session/adodb-session.php');
}

0 comments on commit bf9cdc2

Please sign in to comment.