Fix DB session handler by using alternative class name, renaming SessionHandler to SessionHandlerDatabase - refs BT#8340

1.9.x
Yannick Warnier 11 years ago
parent b33c2b5fdb
commit 5a947dce8f
  1. 2
      main/inc/lib/autoload.class.php
  2. 4
      main/inc/lib/chamilo_session.class.php
  3. 2
      main/inc/lib/session_handler.class.php

@ -819,7 +819,7 @@ class Autoload
$result['ScoreDisplayForm'] = '/main/gradebook/lib/fe/scoredisplayform.class.php';
$result['ScormDocument'] = '/main/coursecopy/classes/ScormDocument.class.php';
$result['Security'] = '/main/inc/lib/security.lib.php';
$result['SessionHandler'] = '/main/inc/lib/session_handler.class.php';
$result['SessionHandlerDatabase'] = '/main/inc/lib/session_handler.class.php';
$result['SessionManager'] = '/main/inc/lib/sessionmanager.lib.php';
$result['Shibboleth\Admin'] = '/main/auth/shibboleth/app/model/admin.class.php';
$result['Shibboleth\AdminStore'] = '/main/auth/shibboleth/app/model/admin.class.php';

@ -84,8 +84,8 @@ class ChamiloSession extends System\Session
}
*/
if (self::session_stored_in_db() && function_exists('session_set_save_handler')) {
$handler = new SessionHandler();
if ($_configuration['session_stored_in_db'] && function_exists('session_set_save_handler')) {
$handler = new SessionHandlerDatabase();
@session_set_save_handler(
array(& $handler, 'open'),
array(& $handler, 'close'),

@ -8,7 +8,7 @@
/**
* @package chamilo.library
*/
class SessionHandler {
class SessionHandlerDatabase {
// TODO: Hm, these variables are public.
public $connection;

Loading…
Cancel
Save