X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=226ccd8a2d9c17c2a01699419da1e0a1bbe6d57c;hb=f08f23b84f880d9f2fdd27f67e8c0cea01c14621;hp=2eaea9e239ea6b4846a309aa2d5675c074dbf7d5;hpb=5cf2734273857ac74e5bd6a63ae84b6c83a64d97;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index 2eaea9e2..226ccd8a 100644 --- a/src/login.php +++ b/src/login.php @@ -30,34 +30,6 @@ require_once(SM_PATH . 'functions/forms.php'); */ set_up_language($squirrelmail_language, TRUE, TRUE); -/** - * In case the last session was not terminated properly, make sure - * we get a new one, but make sure we preserve session_expired_* - */ -$sep = ''; -$sel = ''; -sqGetGlobalVar('session_expired_post', $sep, SQ_SESSION); -sqGetGlobalVar('session_expired_location', $sel, SQ_SESSION); - -/* blow away session */ -sqsession_destroy(); - -/** - * in some rare instances, the session seems to stick - * around even after destroying it (!!), so if it does, - * we'll manually flatten the $_SESSION data - */ -if (!empty($_SESSION)) { - $_SESSION = array(); -} - -/* start session and put session_expired_* variables back in session */ -@sqsession_is_active(); -if (!empty($sep) && !empty($sel)) { - sqsession_register($sep, 'session_expired_post'); - sqsession_register($sel, 'session_expired_location'); -} - /** * This detects if the IMAP server has logins disabled, and if so, * squelches the display of the login form and puts up a message @@ -95,8 +67,10 @@ $loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($ /* Output the javascript onload function. */ $header = "