sqsession_is_active();
session_regenerate_id();
+
+ // put session restore data back into session if necessary
+ if (!empty($sel)) {
+ sqsession_register($sel, 'session_expired_location');
+ if (!empty($sep))
+ sqsession_register($sep, 'session_expired_post');
+ }
}
/**
require(SM_PATH . 'functions/page_header.php');
require(SM_PATH . 'functions/html.php');
- // put session restore data back into session if necessary
- if (!empty($sel)) {
- sqsession_register($sel, 'session_expired_location');
- if (!empty($sep))
- sqsession_register($sep, 'session_expired_post');
- }
-
// reset template file cache
//
$sTemplateID = Template::get_default_template_set();
attachment_common_parse($http_accept);
}
+// having just logged in, need to synch the template file cache
+// so the right template set is displayed (per user prefs)
+require(SM_PATH . 'include/load_prefs.php');
+Template::cache_template_file_hierarchy(TRUE);
+
/* Complete autodetection of Javascript. */
checkForJavascript();
} else {
$redirect_url = $location . '/webmail.php?right_frame=' . urlencode($session_expired_location . '.php');
}
- } else if ($session_expired_location != 'webmail') {
+ } else if ($session_expired_location != 'webmail'
+ && $session_expired_location != 'left_main') {
$redirect_url = $location . '/webmail.php?right_frame=' . urlencode($session_expired_location . '.php');
}
unset($session_expired_location);