Diff for /loncom/auth/checkauthen.pm between versions 1.11 and 1.12

version 1.11, 2007/04/11 21:36:58 version 1.12, 2007/10/02 01:09:59
Line 61  sub handler { Line 61  sub handler {
  }   }
     }      }
   
     my %cookies=CGI::Cookie->parse($r->header_in('Cookie'));      my $handle = &Apache::lonnet::check_for_valid_session($r);
     my $lonid=$cookies{'lonID'};      if ($handle eq '') {
     my $handle;  
     if ($lonid) {  
       $handle=&LONCAPA::clean_handle($lonid->value);  
         $handle = $r->dir_config('lonIDsDir')."/$handle.id";  
     } else {  
         $handle = $env{'user.environment'};          $handle = $env{'user.environment'};
     }      }
   
     if (($handle ne '') && (-e $handle)) {      if ($handle ne '') {
         return OK;          return OK;
     }      }
   

Removed from v.1.11  
changed lines
  Added in v.1.12


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>