forked from extern/egroupware
fallback to db sessions if php's session extension is not loadable, atm. you get cryptic errors, bugs in the bugtracker and mails on the list ;-)
This commit is contained in:
parent
c0bed5e88e
commit
b313272616
@ -1322,6 +1322,10 @@
|
|||||||
|
|
||||||
if(empty($GLOBALS['phpgw_info']['server']['sessions_type']))
|
if(empty($GLOBALS['phpgw_info']['server']['sessions_type']))
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw_info']['server']['sessions_type'] = 'db';
|
$GLOBALS['phpgw_info']['server']['sessions_type'] = 'php4'; // the more performant default
|
||||||
|
}
|
||||||
|
if ($GLOBALS['phpgw_info']['server']['sessions_type'] == 'php4' && !extension_loaded('session') && !@dl('session'))
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_info']['server']['sessions_type'] = 'db'; // fallback if we have no php4 sessions support
|
||||||
}
|
}
|
||||||
include_once(PHPGW_API_INC.'/class.sessions_'.$GLOBALS['phpgw_info']['server']['sessions_type'].'.inc.php');
|
include_once(PHPGW_API_INC.'/class.sessions_'.$GLOBALS['phpgw_info']['server']['sessions_type'].'.inc.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user