mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Make the PHP session restore an own session type in manageheader. So you can switch it on and off, without the need to edit the code. At the moment it's off by default, with a note that it can give a big performance boost (if it works on your distro).
Please note: If you already edited your phpgwapi/inc/functions.inc.php to switch it off, you will get an cvs conflict on updating, just do a "cvs update -C phpgwapi/inc/functions.inc.php" to fix it. If you want to use the session restore or you already used it, you need to go to Setup >> Headeradmin and switch it on there.
This commit is contained in:
parent
e2e0fd6446
commit
e76a77cce9
@ -263,7 +263,7 @@
|
||||
}
|
||||
$GLOBALS['phpgw']->session->appsession($id,'etemplate',$data);
|
||||
|
||||
if ($GLOBALS['phpgw_info']['server']['sessions_type'] == 'php4' && !$this->garbage_collection_done)
|
||||
if (substr($GLOBALS['phpgw_info']['server']['sessions_type'],0,4) == 'php4' && !$this->garbage_collection_done)
|
||||
{
|
||||
return $this->php4_session_garbage_collection();
|
||||
}
|
||||
@ -281,7 +281,7 @@
|
||||
$data = $GLOBALS['phpgw']->session->appsession($id,'etemplate');
|
||||
//echo "boetemplate::get_appsession('$id')"; _debug_array($data);
|
||||
|
||||
if ($GLOBALS['phpgw_info']['server']['sessions_type'] == 'php4')
|
||||
if (substr($GLOBALS['phpgw_info']['server']['sessions_type'],0,4) == 'php4')
|
||||
{
|
||||
$this->php4_session_garbage_collection($id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user