mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 13:05:19 +00:00
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:
1 parent
d4389bf0ea
commit
75cd181d04
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user