From ad0fb104f43a73ad220b6b780d2c0eb0ad45b501 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 3 Apr 2007 13:55:26 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=12299 --- lib/browser.C | 4 ++++ 1 file changed, 4 insertions(+) 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