mirror of
https://github.com/astaxie/beego.git
synced 2025-07-06 04:10:19 +00:00
session: support cookie domain
This commit is contained in:
1
beego.go
1
beego.go
@ -362,6 +362,7 @@ func initBeforeHttpRun() {
|
||||
`"sessionIDHashFunc":"` + SessionHashFunc + `",` +
|
||||
`"sessionIDHashKey":"` + SessionHashKey + `",` +
|
||||
`"enableSetCookie":` + strconv.FormatBool(SessionAutoSetCookie) + `,` +
|
||||
`"domain":` + SessionDomain + `,` +
|
||||
`"cookieLifeTime":` + strconv.Itoa(SessionCookieLifeTime) + `}`
|
||||
}
|
||||
GlobalSessions, err = session.NewManager(SessionProvider,
|
||||
|
Reference in New Issue
Block a user