From: stekkel Date: Tue, 15 Oct 2002 20:53:17 +0000 (+0000) Subject: rg=0 fix for recovering sessions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8a48b08331ac4685df406629efdea719e3272129;p=squirrelmail.git rg=0 fix for recovering sessions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3865 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/auth.php b/functions/auth.php index 7a6a0fd4..24c92ff0 100644 --- a/functions/auth.php +++ b/functions/auth.php @@ -16,19 +16,20 @@ function is_logged_in() { if ( sqsession_is_registered('user_is_logged_in') ) { return; } else { - global $HTTP_POST_VARS, $PHP_SELF, $session_expired_post, + global $PHP_SELF, $session_expired_post, $session_expired_location; /* First we store some information in the new session to prevent * information-loss. */ - $session_expired_post = $HTTP_POST_VARS; + + $session_expired_post = $_POST; $session_expired_location = $PHP_SELF; if (!sqsession_is_registered('session_expired_post')) { - session_register('session_expired_post'); + sqsession_register($session_expired_post,'session_expired_post'); } if (!sqsession_is_registered('session_expired_location')) { - session_register('session_expired_location'); + sqsession_register($session_expired_location,'session_expired_location'); } include_once( '../functions/display_messages.php' ); logout_error( _("You must be logged in to access this page.") );