rg=0 fix for recovering sessions
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 20:53:17 +0000 (20:53 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 20:53:17 +0000 (20:53 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3865 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/auth.php

index 7a6a0fd4a52e1065fd047bbe74ab3933d52e5bbb..24c92ff013d515abed01f4950cefa5b6636e2ad8 100644 (file)
@@ -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.") );