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.
setting
springsession.allow.persist.mutable = true
result inHttpSessionSynchronizer
always callingrequest.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.