Mongo session store for session of restgo
go get github.com/restgo/session-mongo
app := restgo.App()
sessionOpts := `{
"Secret" :"secret",
"Secure" :false,
"Path" :"/",
"HttpOnly" :true,
"CookieName" :"cookie-session",
"MaxAge" : 86400,
"EncyptCookie": false
}`
mongoOpts := `{
"Hosts" :"localhost",
"Database" :"test",
"Collection":"sessions",
"Username" :"",
"Password" :""
}`
app.Use(session.NewSessionManager(session_mongo.NewMongoSessionStore(mongoOpts), sessionOpts))