Skip to content

CookieGenerator.DEFAULT_COOKIE_MAX_AGE is no longer available. Not backwards compatible [SPR-6276] #10943

@spring-projects-issues

Description

@spring-projects-issues

Mark Spritzler opened SPR-6276 and commented

After upgrading to Spring 3.0.0.RC the use of the CookieGenerator.DEFAULT_COOKIE_MAX_AGE constant no longer works. It has been removed from the class. This is breaking our code that worked with 2.5.2

// This probably should be another jira, but I am adding it to the contents here.
Since max age is an int and there isn't a way to set a coookie to never expire. Any value we are setting sets the expiration to that time, but also until session expires. We don't want the cookie to expire, especially if the session expires.


Affects: 3.0 RC1

Issue Links:

Referenced from: commits 9d59db7

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions