/** * Regenerates the session id to prevent session fixations * * @return string new session id */ public function regenerateId() { $this->ensureSessionIsStarted(); $this->backend->regenerateSessionId(); return $this->getId(); }