Heavily improved sessions

This commit is contained in:
2017-06-17 22:19:26 +02:00
parent 340f4d1f9c
commit 15e2717ea8
5 changed files with 18 additions and 6 deletions

View File

@ -31,8 +31,9 @@ func main() {
// CSS
app.SetStyle(components.CSS())
// Session store
app.Sessions.Store = arn.NewAerospikeStore("Session")
// Sessions
app.Sessions.Duration = 3600 * 24
app.Sessions.Store = arn.NewAerospikeStore("Session", app.Sessions.Duration)
// Layout
app.Layout = layout.Render