[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Sat Dec 29 11:50:06 EST 2018


raeburn		Sat Dec 29 16:50:06 2018 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - For servers using Apache/SSL the user's session cookie with a 'secure' 
    attribute set is used for requests to https, other than for 'public' user.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1399 loncom/lonnet/perl/lonnet.pm:1.1400
--- loncom/lonnet/perl/lonnet.pm:1.1399	Sat Dec 29 16:41:24 2018
+++ loncom/lonnet/perl/lonnet.pm	Sat Dec 29 16:50:06 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1399 2018/12/29 16:41:24 raeburn Exp $
+# $Id: lonnet.pm,v 1.1400 2018/12/29 16:50:06 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -690,7 +690,7 @@
             $lonid=$cookies{$secure};
         } elsif (exists($cookies{$name})) {
             $lonid=$cookies{$name};
-        } elsif (exists($cookies{$linkname})) {
+        } elsif ((exists($cookies{$linkname})) && ($ENV{'SERVER_PORT'} != 443)) {
             $lonid=$cookies{$linkname};
         } elsif (exists($cookies{$pubname})) {
             $lonid=$cookies{$pubname};




More information about the LON-CAPA-cvs mailing list