/** * Regenerate the id, take seperate session data table into account * and set cookie again */ protected function regenerateSessionId() { $oldSessionId = $this->id; parent::regenerateSessionId(); // Update session data with new ID $this->db->exec_UPDATEquery('fe_session_data', 'hash=' . $this->db->fullQuoteStr($oldSessionId, 'fe_session_data'), array('hash' => $this->id)); // We force the cookie to be set later in the authentication process $this->dontSetCookie = false; }
/** * Regenerate the id, take separate session data table into account * and set cookie again */ protected function regenerateSessionId() { $oldSessionId = $this->id; parent::regenerateSessionId(); // Update session data with new ID $this->db->exec_UPDATEquery('fe_session_data', 'hash=' . $this->db->fullQuoteStr($oldSessionId, 'fe_session_data'), array('hash' => $this->id)); $this->dontSetCookie = FALSE; }
/** * Regenerate the id, take separate session data table into account * and set cookie again */ protected function regenerateSessionId() { $oldSessionId = $this->id; parent::regenerateSessionId(); // Update session data with new ID GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('fe_session_data')->update('fe_session_data', ['hash' => $this->id], ['hash' => $oldSessionId]); // We force the cookie to be set later in the authentication process $this->dontSetCookie = false; }