function to create a cookie that replaces login cookies

This commit is contained in:
Tina_Azure
2023-04-22 23:16:31 +02:00
parent c21de31cb1
commit fbef9f0596

View File

@ -321,4 +321,15 @@ namespace Utilities {
std::string generateSecureCookieFreelancerEmailValue(const std::string& freelancerEmailValue, bool stayLoggedIn) {
return generateSecureCookie(freelancerEmailValue, stayLoggedIn);
}
/*
* Generates a cookie that is expired contains no relevant information.
*/
std::string generateExpiredCookie() {
return "EXPIRED; HttpOnly; Secure; Path=/; Max-Age=0";
}
}