diff --git a/main.go b/main.go index f6f24f4..bca05ac 100644 --- a/main.go +++ b/main.go @@ -65,11 +65,11 @@ func main() { } else { store = cookie.NewStore([]byte(common.SessionSecret)) } - store.Options(sessions.Options{ - Path: "/", - HttpOnly: true, - MaxAge: 30 * 24 * 3600, - }) + //store.Options(sessions.Options{ + // Path: "/", + // HttpOnly: true, + // MaxAge: 30 * 24 * 3600, + //}) server.Use(sessions.Sessions("session", store)) router.SetRouter(server, buildFS, indexPage)