persist the cookie (#580)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3658 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-07-11 14:06:14 +00:00
1 parent d4389bf0ea
commit 75cd181d04
1 file changed
+1
+1
View File
@@ -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) {