simplify maxege

This commit is contained in:
Umputun
2018-01-21 15:21:32 -06:00
parent 266c62f079
commit 71901bcebc
+1 -1
View File
@@ -89,7 +89,7 @@ func main() {
sess := sessions.NewFilesystemStore(srvOpts.SessionStore, []byte(srvOpts.StoreKey))
sess.Options.HttpOnly = true
sess.Options.Secure = true
sess.Options.MaxAge = int(time.Duration(time.Hour * 24 * 365).Seconds())
sess.Options.MaxAge = 3600 * 24 * 365
return sess
}()