|
|
@ -89,6 +89,8 @@ func NewMacaron() *macaron.Macaron { |
|
|
|
Names: setting.Names, |
|
|
|
Names: setting.Names, |
|
|
|
DefaultLang: "en-US", |
|
|
|
DefaultLang: "en-US", |
|
|
|
Redirect: false, |
|
|
|
Redirect: false, |
|
|
|
|
|
|
|
CookieHttpOnly: true, |
|
|
|
|
|
|
|
Secure: setting.SessionConfig.Secure, |
|
|
|
CookieDomain: setting.SessionConfig.Domain, |
|
|
|
CookieDomain: setting.SessionConfig.Domain, |
|
|
|
})) |
|
|
|
})) |
|
|
|
m.Use(cache.Cacher(cache.Options{ |
|
|
|
m.Use(cache.Cacher(cache.Options{ |
|
|
|