fix: cookie maxAge
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ func (m *Manager) createSession() (*Session, *http.Cookie) {
|
|||||||
Value: url.QueryEscape(session.sid),
|
Value: url.QueryEscape(session.sid),
|
||||||
Path: "/",
|
Path: "/",
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
MaxAge: int(m.maxLifeTTL),
|
MaxAge: int(m.maxLifeTTL / time.Second),
|
||||||
}
|
}
|
||||||
|
|
||||||
return session, cookie
|
return session, cookie
|
||||||
|
|||||||
Reference in New Issue
Block a user