redisstore
redisstore copied to clipboard
max age 0
There is a problem in implementation of func (s *RedisStore) Save
for corner case of session.Options.MaxAge = 0
. Expected behavior for cookie's MaxAge = 0
is to expire cookie when all tabs are closed. For redis, it is never expire.
By putting MaxAge = 0
, no cookie nor redis records are stored.
See https://github.com/boj/redistore/commit/715bb322255772642fde27cc4a31e1d0089086c5#commitcomment-31303439
I know this is an old one, but just to be clear: If I am using MaxAge = 0
this whole package can not be used at all? I mean yeah I can fork it and make my change there but...? Gorilla sessions are pretty clear when it comes to MaxAge
.