session->put($this->getName(), $id); // In Docker, skip session migration to avoid session persistence issues // Only regenerate the CSRF token, don't migrate the session ID $this->session->regenerateToken(); // Note: We intentionally skip session->migrate() here for Docker compatibility // In production, you should use the standard SessionGuard } }