--- loncom/auth/loncacc.pm 2004/08/23 18:57:16 1.35 +++ loncom/auth/loncacc.pm 2004/10/29 20:44:30 1.37 @@ -2,7 +2,7 @@ # Cookie Based Access Handler for Construction Area # (lonacc: 5/21/99,5/22,5/29,5/31 Gerd Kortemeyer) # -# $Id: loncacc.pm,v 1.35 2004/08/23 18:57:16 albertel Exp $ +# $Id: loncacc.pm,v 1.37 2004/10/29 20:44:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -79,9 +79,7 @@ sub handler { my %cookies=CGI::Cookie->parse($r->header_in('Cookie')); my $lonid=$cookies{'lonID'}; my $cookie; - &Apache::lonnet::logthis("Wha? cookie"); if ($lonid) { - &Apache::lonnet::logthis("Valid cookie"); my $handle=$lonid->value; $handle=~s/\W//g; my $lonidsdir=$r->dir_config('lonIDsDir'); @@ -104,15 +102,6 @@ sub handler { $r->log_reason("Unauthorized $requrl", $r->filename); return HTTP_NOT_ACCEPTABLE; } -# Construction space needs Remote to work - if ($ENV{'environment.remote'} eq 'off') { - $r->content_type('text/html'); - $r->header_out(Location => - 'http://'.$r->server->server_hostname. - '/adm/remote?action=launch&url='. - &Apache::lonnet::escape($requrl)); - return REDIRECT; - } # -------------------------------------------------------- Load POST parameters @@ -120,7 +109,6 @@ sub handler { return OK; } else { - &Apache::lonnet::logthis("Invalid cookie"); $r->log_reason("Cookie $handle not valid", $r->filename) }; }