fix logout cookie

This commit is contained in:
Dario 2019-10-03 11:40:51 +02:00
parent cb47fe568e
commit e07e437fb9
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);