[LON-CAPA-cvs] cvs: loncom /auth publiccheck.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 14 Jul 2006 21:39:16 -0000
albertel Fri Jul 14 17:39:16 2006 EDT
Modified files:
/loncom/auth publiccheck.pm
Log:
- no longer need to do the err_header mode
Index: loncom/auth/publiccheck.pm
diff -u loncom/auth/publiccheck.pm:1.5 loncom/auth/publiccheck.pm:1.6
--- loncom/auth/publiccheck.pm:1.5 Sun Jul 9 23:58:45 2006
+++ loncom/auth/publiccheck.pm Fri Jul 14 17:39:16 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Cookie Based Access Handler
#
-# $Id: publiccheck.pm,v 1.5 2006/07/10 03:58:45 raeburn Exp $
+# $Id: publiccheck.pm,v 1.6 2006/07/14 21:39:16 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -85,11 +85,7 @@
my $cookie=&Apache::lonauth::success($r,'public','public','public');
my $lonidsdir=$r->dir_config('lonIDsDir');
&Apache::lonnet::transfer_profile_to_env($lonidsdir,$cookie);
- if ($access eq 'guest') {
- $r->err_headers_out('Set-cookie',"lonID=$cookie; path=/");
- } else {
- $r->header_out('Set-cookie',"lonID=$cookie; path=/");
- }
+ $r->header_out('Set-cookie',"lonID=$cookie; path=/");
}
&Apache::lonacc::get_posted_cgi($r);
$env{'request.state'} = "published";