diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm index 51c5e21d9..0c61b4cce 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm @@ -434,6 +434,8 @@ sub store { # Create second session for unsecure cookie if ( $self->conf->{securedCookie} == 2 and !$req->refresh() ) { my %infos = %{ $req->{sessionInfo} }; + $infos{_updateTime} = strftime( "%Y%m%d%H%M%S", localtime() ); + $self->logger->debug( "Set _updateTime with $infos{_updateTime}" ); $infos{_httpSessionType} = 1; my $session2 = $self->getApacheSession( undef, info => \%infos ); diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index 6b7e04328..bfa8a2d63 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -153,6 +153,8 @@ sub refresh { foreach ( keys %data ) { delete $data{$_} unless ( /^_/ or /^(?:startTime)$/ ); } + $data{_updateTime} = strftime( "%Y%m%d%H%M%S", localtime() ); + $self->logger->debug( "Set session $req->{id} _updateTime with $data{_updateTime}" ); $req->steps( [ 'getUser', @{ $self->betweenAuthAndData },