You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
There is a problem in implementation of
func (s *RedisStore) Save
for corner case ofsession.Options.MaxAge = 0
. Expected behavior for cookie'sMaxAge = 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.The text was updated successfully, but these errors were encountered: