default to a session cookie instead of setting an explicit timeout, weird timezone... FREESIDE_4_BRANCH
authorIvan Kohler <ivan@freeside.biz>
Tue, 18 Jul 2023 23:29:01 +0000 (16:29 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 18 Jul 2023 23:29:01 +0000 (16:29 -0700)
FS/FS/Conf.pm
fs_selfservice/FS-SelfService/cgi/selfservice.cgi

index 657f38d..98de8da 100644 (file)
@@ -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',
   },
 
index 779ef33..5cf0fa0 100755 (executable)
@@ -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' ) {