/** * Regenerates the session ID * * @return void */ public function regenerateId() { if ($this->container instanceof WP_Session) { $this->container->regenerate_id(); } else { $this->container->migrate(); } }