Set _updateTime session value (#1771)

This commit is contained in:
Christophe Maudoux 2019-05-26 11:56:58 +02:00
parent 3dd4c52c65
commit 26233106a5
2 changed files with 4 additions and 0 deletions

View File

@ -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 );

View File

@ -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 },