[freeside-commits] branch FREESIDE_4_BRANCH updated. 379df33385e9519bd43abc0f976e3d170072ad7c

Ivan Kohler ivan at freeside.biz
Tue Jul 18 16:29:02 PDT 2023


The branch, FREESIDE_4_BRANCH has been updated
       via  379df33385e9519bd43abc0f976e3d170072ad7c (commit)
      from  b07fc5121e081be276cd7ed8ea0a030b4c2b06e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 379df33385e9519bd43abc0f976e3d170072ad7c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Jul 18 16:29:01 2023 -0700

    default to a session cookie instead of setting an explicit timeout, weird timezone/clock skew effects on server can cause firefox and other browsers to reject the session cookie, leading to silent login failures

diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 657f38d38..98de8da98 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -2476,8 +2476,8 @@ and customer address. Include units.',
 
   {
     'key'         => 'selfservice-timeout',
-    'section'     => 'self-service',
-    'description' => 'Timeout for the self-service login cookie, in seconds.  Defaults to 1 hour.',
+    'section'     => 'deprecated',
+    'description' => 'Deprecated.  Was the timeout for the self-service login cookie, in seconds.  Defaulted to 1 hour.',
     'type'        => 'text',
   },
 
diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
index 779ef3357..5cf0fa0a1 100755
--- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
+++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
@@ -1252,10 +1252,8 @@ sub do_template {
   $fill_in->{$_} = $access_info->{$_} foreach keys %$access_info;
 
   # update the user's authentication
-  my $timeout = $access_info->{'timeout'} || '3600';
   my $cookie = CGI::Cookie->new('-name'     => 'session',
                                 '-value'    => $session_id,
-                                '-expires'  => '+'.$timeout.'s',
                                 #'-secure'   => 1, # would be a good idea...
                                );
   if ( $name eq 'logout' ) {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Conf.pm                                     | 4 ++--
 fs_selfservice/FS-SelfService/cgi/selfservice.cgi | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list