summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-02-12 11:58:52 -0800
committerIvan Kohler <ivan@freeside.biz>2014-02-12 11:58:52 -0800
commit8d51b40b5bf90351bd013ad3daa9569b2f399a3d (patch)
tree837d94aca9bd2ac7cda891587a209356fc05459f
parent0b25e1048d9d41cb92da42b99e0982910539f320 (diff)
fix login with an existing session cookie, RT#25533
Notes
Notes: actually is: IE11 login issue, RT#26690
-rwxr-xr-xfs_selfservice/FS-SelfService/cgi/selfservice.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
index f84f5d633..84998bb73 100755
--- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
+++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
@@ -101,6 +101,8 @@ if ( $cgi->param('action') =~ /^(\w+)$/ ) {
}
}
+warn $action;
+
unless ( $nologin_actions{$action} ) {
my %cookies = CGI::Cookie->fetch;
@@ -1062,7 +1064,7 @@ sub do_template {
my $timeout = $access_info->{'timeout'} || '60';
my $cookie = CGI::Cookie->new('-name' => 'session',
'-value' => $session_id,
- '-expires' => '+'.$timeout,
+ '-expires' => '+'.$timeout.'s',
#'-secure' => 1, # would be a good idea...
);
if ( $name eq 'logout' ) {