Skip to content

Commit 07c8655

Browse files
committed
SessionStorage: don't extend expireTime when expired
1 parent cd928c3 commit 07c8655

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Bridges/SecurityHttp/SessionStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ private function getSessionSection(): SessionSection
140140
if ($section->get('expireIdentity')) {
141141
$section->remove('identity');
142142
}
143+
} else {
144+
$section->set('expireTime', time() + $section->get('expireDelta')); // sliding expiration
143145
}
144-
145-
$section->set('expireTime', time() + $section->get('expireDelta')); // sliding expiration
146146
}
147147

148148
if (!$section->get('authenticated')) {

0 commit comments

Comments
 (0)