Commit 3e4edfc8 authored by Georg Ringer's avatar Georg Ringer Committed by Benni Mack

[BUGFIX] Use correct field name ses_permanent in UserSessionManager

The correct field name is `ses_permanent` instead of `is_permanent`.

Resolves: #93862
Releases: master
Change-Id: Ie39d9b4828a963218bd6d84720ec47c6e6abfa3e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68716Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 6572f5f3
......@@ -168,7 +168,7 @@ class UserSessionManager implements LoggerAwareInterface
$sessionRecord['ses_iplock'] = $sessionIpLock;
$sessionRecord['ses_userid'] = 0;
if ($isPermanent) {
$sessionRecord['ses_permanent'] = $isPermanent;
$sessionRecord['ses_permanent'] = 1;
}
$this->sessionBackend->set($session->getIdentifier(), $sessionRecord);
}
......@@ -198,7 +198,7 @@ class UserSessionManager implements LoggerAwareInterface
'ses_data' => '',
];
if ($isPermanent) {
$sessionRecord['is_permanent'] = 1;
$sessionRecord['ses_permanent'] = 1;
}
$sessionRecord = $this->sessionBackend->set($sessionId, $sessionRecord);
return UserSession::createFromRecord($sessionId, $sessionRecord, true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment