diff --git a/lib/browser.C b/lib/browser.C index 901090edfd..f043921b2d 100644 --- a/lib/browser.C +++ b/lib/browser.C @@ -25,6 +25,7 @@ #ifndef _WIN32 #include #include +#include #endif #include "error_numbers.h" @@ -282,6 +283,9 @@ bool find_project_cookie_mozilla_generic( // is this the right host? if (!strstr(host, hostname.c_str())) continue; + // has the cookie expired? + if (time(0) > expires) continue; + // is this the right cookie? if (starts_with(name, "Setup")) { // If validation failed, null out the authenticator just in case