Updated session lib

This commit is contained in:
Torkel Ödegaard committed 2014-12-30 10:28:27 +01:00
1 parent e9fcca16bd
commit aafe2c5b98
19 files changed
+827 -2201

No files matched your search

+1 -4
View File
@@ -37,10 +37,7 @@ func newMacaron() *macaron.Macaron {
mapStatic(m, "public/app", "app")
mapStatic(m, "public/img", "img")
m.Use(session.Sessioner(session.Options{
Provider: setting.SessionProvider,
Config: *setting.SessionConfig,
}))
m.Use(session.Sessioner(setting.SessionOptions))
m.Use(macaron.Renderer(macaron.RenderOptions{
Directory: path.Join(setting.StaticRootPath, "views"),