From c0d3cc6fc5b166efbc2a053fd868b9955a9ffb4f Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 5 Aug 2014 08:55:46 +0800 Subject: [PATCH] beego: fix the domain string --- beego.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beego.go b/beego.go index c993cfe0..ffedcc68 100644 --- a/beego.go +++ b/beego.go @@ -362,7 +362,7 @@ func initBeforeHttpRun() { `"sessionIDHashFunc":"` + SessionHashFunc + `",` + `"sessionIDHashKey":"` + SessionHashKey + `",` + `"enableSetCookie":` + strconv.FormatBool(SessionAutoSetCookie) + `,` + - `"domain":` + SessionDomain + `,` + + `"domain":"` + SessionDomain + `",` + `"cookieLifeTime":` + strconv.Itoa(SessionCookieLifeTime) + `}` } GlobalSessions, err = session.NewManager(SessionProvider,