diff options
author | Martin van Beurden <chadoe@gmail.com> | 2014-09-21 14:07:00 +0200 |
---|---|---|
committer | Martin van Beurden <chadoe@gmail.com> | 2014-09-21 14:25:22 +0200 |
commit | 976f1486e01548bfb420a7c809ede6fc273e4a26 (patch) | |
tree | cef9d08801579d72dfb5c42e8bf8019f23f9dff6 /modules/setting | |
parent | cb0ea46d1e06ec64358807d4e0fc49d9ecece311 (diff) | |
download | gitea-976f1486e01548bfb420a7c809ede6fc273e4a26.tar.gz gitea-976f1486e01548bfb420a7c809ede6fc273e4a26.zip |
Set cookiepath to AppSubUrl
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 321282df25..a1ab43d022 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -380,6 +380,7 @@ 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) |