jeetmp3 / spring-session

Apache License 2.0
18 stars 24 forks source link

setting persistMutable to true always creates a session #23

Closed peh closed 6 years ago

peh commented 6 years ago

setting springsession.allow.persist.mutable = true result in HttpSessionSynchronizer always calling request.getSession() This calls the default implementation of getSession which calls getSession(true) which results in a persisted session in redis, although the session mit have never been used.

Ultimatly this results in a lot of garbage in Redis with HTTP sessions that might have never been needed.