Gorilla Sessions - How to Automatically Update Cookie Expiration on Request?
问题 I know many other languages and web frameworks will automatically update a cookie's expiration time to the session timeout every time a session is accessed via the backend (or some action like that). I don't believe Gorilla provides this utility. I am consider just writing some request middleware that, if it detects a valid session, will extend the cookie lifetime but I am wondering if there is a better method of doing this. What are the best practices for updating cookie expiration,