1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

Little change of session API + Update examples

Former-commit-id: e8c58b186acf1c8932af6e886dae7035f4d581c1
This commit is contained in:
corebreaker
2017-08-01 08:34:18 +03:00
parent 0f1a265e5a
commit ef979cf541
4 changed files with 27 additions and 6 deletions

View File

@@ -65,5 +65,10 @@ func main() {
sess.Destroy(ctx)
})
app.Get("/update", func(ctx context.Context) {
// updates expire date with a new date
sess.ShiftExpiraton(ctx)
})
app.Run(iris.Addr(":8080"))
}