tikisession-adodb.php 674 Bytes
Newer Older
1
<?php
2
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
rjsmelo's avatar
rjsmelo committed
3
//
4 5 6 7
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

8
include('db/local.php');
rjsmelo's avatar
rjsmelo committed
9 10 11 12 13
$ADODB_SESSION_DRIVER = $db_tiki;
$ADODB_SESSION_CONNECT = $host_tiki;
$ADODB_SESSION_USER = $user_tiki;
$ADODB_SESSION_PWD = $pass_tiki;
$ADODB_SESSION_DB = $dbs_tiki;
14 15 16 17 18
unset($db_tiki);
unset($host_tiki);
unset($user_tiki);
unset($pass_tiki);
unset($dbs_tiki);
19
ini_set('session.save_handler', 'user');
20 21 22 23
// Force autoload
if (! class_exists('ADODB_Session')) {
	die('AdoDb Session missing');
}