mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
set iris logger to the sessiondb/badger logs and update deps
Former-commit-id: 7578dec5752cc2bfa012440c24d59f41425812f8
This commit is contained in:
@@ -26,10 +26,14 @@ func main() {
|
||||
|
||||
sess := sessions.New(sessions.Config{
|
||||
Cookie: "sessionscookieid",
|
||||
Expires: 45 * time.Minute, // <=0 means unlimited life. Defaults to 0.
|
||||
Expires: 1 * time.Minute, // <=0 means unlimited life. Defaults to 0.
|
||||
AllowReclaim: true,
|
||||
})
|
||||
|
||||
sess.OnDestroy(func(sid string) {
|
||||
println(sid + " expired and destroyed from memory and its values from database")
|
||||
})
|
||||
|
||||
//
|
||||
// IMPORTANT:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user