mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 09:40:19 +00:00
#254 add SessionHashFunc SessionHashKey SessionCookieLifeTime
This commit is contained in:
9
beego.go
9
beego.go
@ -71,7 +71,14 @@ func Run() {
|
||||
}
|
||||
|
||||
if SessionOn {
|
||||
GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime, SessionSavePath, HttpTLS)
|
||||
GlobalSessions, _ = session.NewManager(SessionProvider,
|
||||
SessionName,
|
||||
SessionGCMaxLifetime,
|
||||
SessionSavePath,
|
||||
HttpTLS,
|
||||
SessionHashFunc,
|
||||
SessionHashKey,
|
||||
SessionCookieLifeTime)
|
||||
go GlobalSessions.GC()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user