diff --git a/src/utilities.cpp b/src/utilities.cpp index bce76ac..209c3f2 100644 --- a/src/utilities.cpp +++ b/src/utilities.cpp @@ -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"; + } + + + + } \ No newline at end of file