Set _updateTime session value (#1771)
This commit is contained in:
parent
3dd4c52c65
commit
26233106a5
|
@ -434,6 +434,8 @@ sub store {
|
||||||
# Create second session for unsecure cookie
|
# Create second session for unsecure cookie
|
||||||
if ( $self->conf->{securedCookie} == 2 and !$req->refresh() ) {
|
if ( $self->conf->{securedCookie} == 2 and !$req->refresh() ) {
|
||||||
my %infos = %{ $req->{sessionInfo} };
|
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;
|
$infos{_httpSessionType} = 1;
|
||||||
|
|
||||||
my $session2 = $self->getApacheSession( undef, info => \%infos );
|
my $session2 = $self->getApacheSession( undef, info => \%infos );
|
||||||
|
|
|
@ -153,6 +153,8 @@ sub refresh {
|
||||||
foreach ( keys %data ) {
|
foreach ( keys %data ) {
|
||||||
delete $data{$_} unless ( /^_/ or /^(?:startTime)$/ );
|
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( [
|
$req->steps( [
|
||||||
'getUser',
|
'getUser',
|
||||||
@{ $self->betweenAuthAndData },
|
@{ $self->betweenAuthAndData },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user