From e07e437fb9d00e38beaf902b687911e4e0a7c650 Mon Sep 17 00:00:00 2001 From: Dario Date: Thu, 3 Oct 2019 11:40:51 +0200 Subject: [PATCH] fix logout cookie --- src/cpp/HTTPInterface/LoginPage.cpp | 2 +- src/cpsp/login.cpsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/HTTPInterface/LoginPage.cpp b/src/cpp/HTTPInterface/LoginPage.cpp index 37ef25349..da6457b8a 100644 --- a/src/cpp/HTTPInterface/LoginPage.cpp +++ b/src/cpp/HTTPInterface/LoginPage.cpp @@ -38,7 +38,7 @@ void LoginPage::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net:: } } else { // remove old cookies if exist - auto keks = Poco::Net::HTTPCookie("GRADIDO_LOGIN", std::to_string(mHandleId)) + auto keks = Poco::Net::HTTPCookie("GRADIDO_LOGIN", ""); // max age of 0 delete cookie keks.setMaxAge(0); response.addCookie(keks); diff --git a/src/cpsp/login.cpsp b/src/cpsp/login.cpsp index 8ec7d81d0..287ebcb2f 100644 --- a/src/cpsp/login.cpsp +++ b/src/cpsp/login.cpsp @@ -23,7 +23,7 @@ } } else { // remove old cookies if exist - auto keks = Poco::Net::HTTPCookie("GRADIDO_LOGIN", std::to_string(mHandleId)) + auto keks = Poco::Net::HTTPCookie("GRADIDO_LOGIN", ""); // max age of 0 delete cookie keks.setMaxAge(0); response.addCookie(keks);