Skip to content

Commit

Permalink
Expire old rememberme series after 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jun 6, 2019
1 parent 27d2954 commit 14bef3f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -239,7 +239,7 @@ private function cleanupExpiredTokens(): void
'DELETE FROM tl_remember_me WHERE lastUsed<:lastUsed OR expires<:expires',
[
'lastUsed' => (new \DateTime())->sub(new \DateInterval('PT'.$this->options['lifetime'].'S')),
'expires' => (new \DateTime())->sub(new \DateInterval('PT3600S')),
'expires' => (new \DateTime())->sub(new \DateInterval('PT300S')),
],
[
'lastUsed' => DoctrineType::DATETIME,
Expand Down

0 comments on commit 14bef3f

Please sign in to comment.