[BUGFIX] Correctly insert session data after deleting them 97/39597/2
authorMarkus Klein <markus.klein@typo3.org>
Mon, 18 May 2015 11:07:36 +0000 (13:07 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 18 May 2015 13:34:28 +0000 (15:34 +0200)
Reset session data timestamp when removing session data in order to
assure that new session data are stored via INSERT later again.

Resolves: #67007
Releases: master, 6.2
Change-Id: I181017687f9569d4e2a16ca3a970367b05cf7d52
Reviewed-on: http://review.typo3.org/39597
Reviewed-by: Johann Carstens <johann.carstens@conlabz.de>
Tested-by: Johann Carstens <johann.carstens@conlabz.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php

index 260097a..1e53e43 100644 (file)
@@ -448,6 +448,7 @@ class FrontendUserAuthentication extends AbstractUserAuthentication {
         * @return void
         */
        public function removeSessionData() {
+               $this->sessionDataTimestamp = NULL;
                $this->db->exec_DELETEquery('fe_session_data', 'hash=' . $this->db->fullQuoteStr($this->id, 'fe_session_data'));
        }