Heavily improved sessions
This commit is contained in:
5
main.go
5
main.go
@ -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
|
||||
|
Reference in New Issue
Block a user