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) {