afadb3f6 by sol lu

Update beego.go

1 parent 844412c3
Showing 1 changed file with 2 additions and 1 deletions
......@@ -192,6 +192,7 @@ func Run() {
}
if SessionOn {
var err error
sessionConfig := AppConfig.String("sessionConfig")
if sessionConfig == "" {
sessionConfig = `{"cookieName":"` + SessionName + `",` +
......@@ -203,7 +204,7 @@ func Run() {
`"enableSetCookie":` + strconv.FormatBool(SessionAutoSetCookie) + `,` +
`"cookieLifeTime":` + strconv.Itoa(SessionCookieLifeTime) + `}`
}
GlobalSessions, err := session.NewManager(SessionProvider,
GlobalSessions, err = session.NewManager(SessionProvider,
sessionConfig)
if err != nil {
panic(err)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!