1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Always name the cookie "_session"

This commit is contained in:
Daniel Heath 2018-05-27 21:49:34 +10:00
parent 7a61b16e7a
commit 82d5ac908d

View File

@ -129,7 +129,7 @@ func (s Site) Router() *gin.Engine {
router.HTMLRender = s.loadTemplates("index.tmpl") router.HTMLRender = s.loadTemplates("index.tmpl")
} }
router.Use(sessions.Sessions(s.PathToData, s.SessionStore)) router.Use(sessions.Sessions("_session", s.SessionStore))
if s.SecretCode != "" { if s.SecretCode != "" {
cfg := &secretRequired.Config{ cfg := &secretRequired.Config{
Secret: s.SecretCode, Secret: s.SecretCode,