From 9d59db79440474be91fed8d163cb6865e80f9fde Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 12 Nov 2009 14:25:14 +0000 Subject: [PATCH] reintroduced DEFAULT_COOKIE_MAX_AGE in deprecated form (for binary compatibility; SPR-6276) --- .../java/org/springframework/web/util/CookieGenerator.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org.springframework.web/src/main/java/org/springframework/web/util/CookieGenerator.java b/org.springframework.web/src/main/java/org/springframework/web/util/CookieGenerator.java index 0a48621669..21424a49f2 100644 --- a/org.springframework.web/src/main/java/org/springframework/web/util/CookieGenerator.java +++ b/org.springframework.web/src/main/java/org/springframework/web/util/CookieGenerator.java @@ -44,6 +44,13 @@ public class CookieGenerator { */ public static final String DEFAULT_COOKIE_PATH = "/"; + /** + * Default maximum age of cookies: maximum integer value, i.e. forever. + * @deprecated in favor of setting no max age value at all in such a case + */ + @Deprecated + public static final int DEFAULT_COOKIE_MAX_AGE = Integer.MAX_VALUE; + protected final Log logger = LogFactory.getLog(getClass());