1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

Update to 8.2.1 | LevelDB-based session database implemented, Read HISTORY.md

Former-commit-id: 4e341b185aedaaa9a04fdebe43b4364dec59e3c8
This commit is contained in:
kataras
2017-08-08 16:00:34 +03:00
parent 92d0b146df
commit 056f9a9415
10 changed files with 420 additions and 7 deletions

View File

@@ -13,6 +13,9 @@ import (
func main() {
db, _ := file.New("./sessions/", 0666)
// use different go routines to sync the database
db.Async(true)
sess := sessions.New(sessions.Config{
Cookie: "sessionscookieid",
Expires: 45 * time.Minute, // <=0 means unlimited life