From 75cd181d04f19da43db331fe05e917011468f45d Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 11 Jul 2007 14:06:14 +0000 Subject: [PATCH] persist the cookie (#580) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3658 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Functions.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 944a429186..e1dd185e4e 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -315,6 +315,7 @@ public class Functions { // Using request.getContextPath() might work but it seems simpler to just use the hudson_ prefix // to avoid conflicts with any other web apps that might be on the same machine. c.setPath("/"); + c.setMaxAge(60*60*24*30); // persist it roughly for a month response.addCookie(c); } if (refresh) {