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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user