|
|
|
@ -380,7 +380,6 @@ func newSessionService() {
|
|
|
|
|
SessionConfig = new(session.Config) |
|
|
|
|
SessionConfig.ProviderConfig = strings.Trim(Cfg.MustValue("session", "PROVIDER_CONFIG"), "\" ") |
|
|
|
|
SessionConfig.CookieName = Cfg.MustValue("session", "COOKIE_NAME", "i_like_gogits") |
|
|
|
|
SessionConfig.CookiePath = AppSubUrl |
|
|
|
|
SessionConfig.Secure = Cfg.MustBool("session", "COOKIE_SECURE") |
|
|
|
|
SessionConfig.EnableSetCookie = Cfg.MustBool("session", "ENABLE_SET_COOKIE", true) |
|
|
|
|
SessionConfig.Gclifetime = Cfg.MustInt64("session", "GC_INTERVAL_TIME", 86400) |
|
|
|
|