Skip to content

Configure Session Cookie using SessionCookieConfig #87

Closed
@rwinch

Description

@rwinch

The configuration for the Session Cookie (i.e. SessionCookieConfig) should impact Spring Session's settings.

Update:

There are some limitations in our capability of mapping SessionCookieConfig's attributes (copied from the description on PR #713):

  • secure: DefaultCookieSerializer#useSecureCookie defaults to null and relies on ServletRequest#isSecure which means mapping a value from SessionCookieConfig would override our default (since secure is a primitive boolean over there and typically defaults to false)
  • httpOnly: DefaultCookieSerializer#useHttpOnlyCookie defaults to true in Servlet 3.0+ environments which means our default would be overridden in httpOnly typically defaults to false

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions