Skip to content

CookieGenerator default max age value leads to expiration date back in 1977 [SPR-5835] #10505

@spring-projects-issues

Description

@spring-projects-issues

Nicolas Romanetti opened SPR-5835 and commented

The default max age value is set as follow:

public static final int DEFAULT_COOKIE_MAX_AGE = Integer.MAX_VALUE;

This default value leads to cookie expiring in year 1977 ...

I think default value should be null (use Integer instead of int) and the max age should be set on the cookie only if it is != null


Affects: 2.5.6

Issue Links:

Referenced from: commits 13c3c57

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions