diff --git a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
index 5abb83be02a4315ee0c2a9b6681542157654b247..fccb3b6a3b52c897ef232900de4364d98316670e 100644
--- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
+++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
@@ -832,6 +832,7 @@ abstract class AbstractUserAuthentication
             ['ses_id' => $this->id],
             ['ses_id' => $oldSessionId, 'ses_name' => $this->name]
         );
+        $this->user['ses_id'] = $this->id;
         $this->newSessionID = true;
     }