[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm publiccheck.pm

raeburn raeburn at source.lon-capa.org
Sat Feb 25 14:56:09 EST 2017


raeburn		Sat Feb 25 19:56:09 2017 EDT

  Modified files:              
    /loncom/auth	publiccheck.pm lonlogin.pm 
  Log:
  - Name of cookie for public user set to lonPubID.
  
  
Index: loncom/auth/publiccheck.pm
diff -u loncom/auth/publiccheck.pm:1.25 loncom/auth/publiccheck.pm:1.26
--- loncom/auth/publiccheck.pm:1.25	Fri Feb 17 18:37:57 2017
+++ loncom/auth/publiccheck.pm	Sat Feb 25 19:56:09 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: publiccheck.pm,v 1.25 2017/02/17 18:37:57 raeburn Exp $
+# $Id: publiccheck.pm,v 1.26 2017/02/25 19:56:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -92,7 +92,7 @@
         my $cookie=&Apache::lonauth::success($r,'public','public','public');
         my $lonidsdir=$r->dir_config('lonIDsDir');
         &Apache::lonnet::transfer_profile_to_env($lonidsdir,$cookie);
-	$r->err_header_out('Set-cookie',"lonPublic=$cookie; path=/; HttpOnly");
+	$r->err_header_out('Set-cookie',"lonPubID=$cookie; path=/; HttpOnly");
     }
     &Apache::lonacc::get_posted_cgi($r);
     $env{'request.state'} = "published";
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.169 loncom/auth/lonlogin.pm:1.170
--- loncom/auth/lonlogin.pm:1.169	Fri Feb 17 18:37:05 2017
+++ loncom/auth/lonlogin.pm	Sat Feb 25 19:56:09 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.169 2017/02/17 18:37:05 raeburn Exp $
+# $Id: lonlogin.pm,v 1.170 2017/02/25 19:56:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -75,7 +75,7 @@
     &Apache::lonlocal::get_language_handle($r);
     &Apache::loncommon::content_type($r,'text/html');
     if ($expire) {
-        my $c = new CGI::Cookie(-name    => 'lonPublic',
+        my $c = new CGI::Cookie(-name    => 'lonPubID',
                                 -value   => '',
                                 -expires => '-10y',);
         $r->header_out('Set-cookie' => $c);




More information about the LON-CAPA-cvs mailing list