0 && is_realm_allowed(8)) { $myrefresh['seconds'] = read_user_setting('user_auto_logout_time'); $myrefresh['page'] = CACTI_PATH_URL . 'logout.php?action=timeout'; $refreshIsLogout = 'true'; } elseif (read_config_option('auth_method') == AUTH_METHOD_BASIC) { $myrefresh['seconds'] = 99999999; $myrefresh['page'] = 'index.php'; $refreshIsLogout = 'false'; } elseif (!isset($_SESSION[SESS_USER_ID]) && str_contains($request_uri, 'index.php')) { $myrefresh['seconds'] = 99999999; $myrefresh['page'] = sanitize_uri($request_uri); $refreshIsLogout = 'false'; } else { $myrefresh['seconds'] = ini_get('session.gc_maxlifetime'); $myrefresh['page'] = CACTI_PATH_URL . 'logout.php?action=timeout'; $refreshIsLogout = 'true'; } // guest account does not auto log off if (isset($_SESSION[SESS_USER_ID]) && $_SESSION[SESS_USER_ID] == read_config_option('guest_user')) { $myrefresh['seconds'] = 99999999; $myrefresh['page'] = sanitize_uri($request_uri); $refreshIsLogout = 'false'; } // basic auth times out when the auth provider times out if (read_config_option('auth_method') == AUTH_METHOD_BASIC) { $myrefresh['seconds'] = 99999999; $myrefresh['page'] = sanitize_uri($request_uri); $refreshIsLogout = 'false'; } if ($graphs) { $refresh_function = 'refreshGraphs()'; } else { $refresh_function = ''; } ?>