Index: trunk/core/kernel/processors/main_processor.php =================================================================== diff -u -r4457 -r4490 --- trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 4457) +++ trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 4490) @@ -520,7 +520,7 @@ function ModuleInclude($params) { $ret = ''; - $block_params = Array('is_silent' => 1); // don't make fatal errors in case if template is missing + $block_params = Array('is_silent' => 2); // don't make fatal errors in case if template is missing $current_template = $this->Application->GetVar('t'); foreach ($this->Application->ModuleInfo as $module_name => $module_data) { if (!$module_data['Loaded']) continue; @@ -755,7 +755,13 @@ if ( $this->Application->LoggedIn() && !$group_access) { $this->Application->Redirect( $params['no_group_perm_template'], Array('next_template'=>$t) ); } - $this->Application->Redirect( $params['login_template'], Array('next_template'=>$t) ); + + $redirect_params = Array('next_template' => $t); + $session_expired = $this->Application->GetVar('expired'); + if ($session_expired) { + $redirect_params['expired'] = $session_expired; + } + $this->Application->Redirect( $params['login_template'], $redirect_params); } }