1
0
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:
astaxie
2014-08-04 16:21:06 +08:00
parent 474a16a7a0
commit d7a5281bda
3 changed files with 8 additions and 2 deletions

View File

@ -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,