]> err.no Git - scalable-opengroupware.org/blobdiff - UI/MainUI/SOGoUserHomePage.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1170 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / MainUI / SOGoUserHomePage.m
index 6f211ce67d677d3e41d5292369fe383bd2a6afe7..910155833657e00b828dfd829a45025f7c4a8425 100644 (file)
@@ -203,10 +203,10 @@ static NSString *defaultModule = nil;
 - (id <WOActionResults>) logoffAction
 {
   WOResponse *response;
-  NSEnumerator *cookies;
   WOCookie *cookie;
   SOGoWebAuthenticator *auth;
   id container;
+  NSCalendarDate *date;
 
   container = [[self clientObject] container];
 
@@ -214,11 +214,12 @@ static NSString *defaultModule = nil;
   [response setStatus: 302];
   [response setHeader: [container baseURLInContext: context]
            forKey: @"location"];
-  cookies = [[response cookies] objectEnumerator];
   auth = [[self clientObject] authenticatorInContext: context];
   cookie = [WOCookie cookieWithName: [auth cookieNameInContext: context]
-                    value: @"logoff"];
+                    value: @"discard"];
   [cookie setPath: @"/"];
+  date = [NSCalendarDate calendarDate];
+  [cookie setExpires: [date yesterday]];
   [response addCookie: cookie];
 
   return response;