mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
add package gkvdb; add kvdb storage feature for ghttp.Server
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
||||
|
||||
func main() {
|
||||
s := g.Server()
|
||||
s.SetSessionMaxAge(72000000)
|
||||
s.SetSessionMaxAge(60)
|
||||
s.SetSessionIdName("gpadminssid")
|
||||
s.BindHandler("/set", func(r *ghttp.Request) {
|
||||
r.Session.Set("time", gtime.Second())
|
||||
|
||||
Reference in New Issue
Block a user