mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix logout cookie
This commit is contained in:
parent
cb47fe568e
commit
e07e437fb9
@ -38,7 +38,7 @@ void LoginPage::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// remove old cookies if exist
|
// 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
|
// max age of 0 delete cookie
|
||||||
keks.setMaxAge(0);
|
keks.setMaxAge(0);
|
||||||
response.addCookie(keks);
|
response.addCookie(keks);
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// remove old cookies if exist
|
// 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
|
// max age of 0 delete cookie
|
||||||
keks.setMaxAge(0);
|
keks.setMaxAge(0);
|
||||||
response.addCookie(keks);
|
response.addCookie(keks);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user