From 913c7299a3a9ffd7aab1ca9e0a96bb64396ca571 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 16 Oct 2024 13:54:15 +0200 Subject: [PATCH] Axivion: Ensure clean session start Before accessing a dashboard server the first time remove possibly existing session cookies from former requests to other dashboard servers. Fixes: QTCREATORBUG-31785 Change-Id: I2d08f1f121cdb56e1036d656748ebbcafb0643e7 Reviewed-by: Mohammad Mehdi Salem Naraghi Reviewed-by: hjk --- src/plugins/axivion/axivionplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/axivion/axivionplugin.cpp b/src/plugins/axivion/axivionplugin.cpp index 4a5b0d01f77..27991963f35 100644 --- a/src/plugins/axivion/axivionplugin.cpp +++ b/src/plugins/axivion/axivionplugin.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -766,6 +767,7 @@ Group dashboardInfoRecipe(const DashboardInfoHandler &handler) handler(*dd->m_dashboardInfo); return SetupResult::StopWithSuccess; } + dd->m_networkAccessManager.setCookieJar(new QNetworkCookieJar); // remove old cookies return SetupResult::Continue; }; const auto onDone = [handler](DoneWith result) {