function force_session_restart($id_author) { include_lcm('inc_session'); global $author_session, $lcm_session; zap_sessions($id_author, true); if ($author_session['id_author'] == $id_author) { lcm_debug("lcm_session = " . $lcm_session); delete_session($lcm_session); } else { lcm_debug("I am ID = " . $author_session['id_author']); } }
$cible->addVar('var_login', '-1'); } else { if ($cookie_admin and $lcm_admin != $cookie_admin) { // Remember the username for the next login // This way, the user can login in only one form, not two lcm_setcookie('lcm_admin', $cookie_admin, time() + 3600 * 24 * 14); } } // Attempt to logout if (_request('logout')) { include_lcm('inc_session'); verifier_visiteur(); global $author_session; if ($author_session['username'] == $_REQUEST['logout']) { if ($_COOKIE['lcm_session']) { zap_sessions($author_session['id_author'], true); lcm_setcookie('lcm_session', $_COOKIE['lcm_session'], time() - 3600 * 24); } unset($author_session); } if (!$url) { @Header("Location: ./lcm_login.php"); } else { @Header("Location: {$url}"); } exit; } // If the user logins with privet=yes (privet: greetings), we try to // put a cookie and then go to lcm_login.php which will try to make // a diagnostic if necessary. if (_request('cookie_test_failed') == 'yes') {