I need to set the browser cookie expiration based on the session. Session.Options(sessions.Options{MaxAge:0}) can be implemented, but it directly causes the stored session to expire and the client cannot request normally. I have tried setting store.Options(sessions.Options{MaxAge:60}) If the session.Options(sessions.Options{MaxAge:0}) is set later, it will be directly overwritten.
I need to set the browser cookie expiration based on the session. Session.Options(sessions.Options{MaxAge:0}) can be implemented, but it directly causes the stored session to expire and the client cannot request normally. I have tried setting store.Options(sessions.Options{MaxAge:60}) If the session.Options(sessions.Options{MaxAge:0}) is set later, it will be directly overwritten.