Skip to content

Commit 9d59db7

Browse files
committed
reintroduced DEFAULT_COOKIE_MAX_AGE in deprecated form (for binary compatibility; SPR-6276)
1 parent f595b67 commit 9d59db7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

org.springframework.web/src/main/java/org/springframework/web/util/CookieGenerator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ public class CookieGenerator {
4444
*/
4545
public static final String DEFAULT_COOKIE_PATH = "/";
4646

47+
/**
48+
* Default maximum age of cookies: maximum integer value, i.e. forever.
49+
* @deprecated in favor of setting no max age value at all in such a case
50+
*/
51+
@Deprecated
52+
public static final int DEFAULT_COOKIE_MAX_AGE = Integer.MAX_VALUE;
53+
4754

4855
protected final Log logger = LogFactory.getLog(getClass());
4956

0 commit comments

Comments
 (0)