fix: cookie maxAge

This commit is contained in:
sertraline
2023-08-07 23:42:45 +03:00
committed by GitHub
parent 188d3596a2
commit 0fbba6378a
+1 -1
View File
@@ -72,7 +72,7 @@ func (m *Manager) createSession() (*Session, *http.Cookie) {
Value: url.QueryEscape(session.sid),
Path: "/",
HttpOnly: true,
MaxAge: int(m.maxLifeTTL),
MaxAge: int(m.maxLifeTTL / time.Second),
}
return session, cookie