commit regarding problem with persistent session restore; further work needed

This commit is contained in:
Klaus Leithoff 2009-08-18 07:40:26 +00:00
parent 01a45a3d3a
commit f2c4679dcb
2 changed files with 5 additions and 6 deletions

View File

@ -463,9 +463,9 @@
function getUserProfile($_appName='', $_groups='')
{
if (!(is_array($this->sessionData) && (count($this->sessionData)>0))) $this->restoreSessionData();
if (is_array($this->sessionData) && count($this->sessionData)>0 && $this->sessionData['eapreferences']) {
if (is_array($this->sessionData) && count($this->sessionData)>0 && $this->sessionData['ea_preferences']) {
#error_log("sessionData Restored for UserProfile<br>");
return $this->sessionData['eapreferences'];
return $this->sessionData['ea_preferences'];
}
$appName = ($_appName != '' ? $_appName : $GLOBALS['egw_info']['flags']['currentapp']);
if(!is_array($_groups)) {
@ -547,7 +547,7 @@
$eaPreferences->userDefinedIdentities = ($data['userDefinedIdentities'] == 'yes');
$eaPreferences->ea_user_defined_signatures = ($data['ea_user_defined_signatures'] == 'yes');
$eaPreferences->ea_default_signature = $data['ea_default_signature'];
$this->sessionData['eapreferences'] = $eaPreferences;
$this->sessionData['ea_preferences'] = $eaPreferences;
$this->saveSessionData();
return $eaPreferences;
}
@ -582,8 +582,7 @@
//echo function_backtrace()."<br>";
//unserializing the sessiondata, since they are serialized for objects sake
$this->sessionData = (array) unserialize($GLOBALS['egw']->session->appsession('session_data','emailadmin'));
#$this->userSessionData = $GLOBALS['egw']->session->appsession('user_session_data','emailadmin');
//$this->sessionData = (array) unserialize($GLOBALS['egw']->session->appsession('session_data','emailadmin'));
}
/**

View File

@ -41,7 +41,7 @@
// set an own autoload function, search emailadmin for missing classes
$GLOBALS['egw_info']['flags']['autoload'] = array(__CLASS__,'autoload');
$this->sessionData = (array) unserialize($GLOBALS['egw']->session->appsession('fm_preferences','felamimail'));
//$this->sessionData = (array) unserialize($GLOBALS['egw']->session->appsession('fm_preferences','felamimail'));
}
/**