Always name the cookie "_session"

This commit is contained in:
Daniel Heath 2018-05-27 21:49:34 +10:00
parent 7a61b16e7a
commit 82d5ac908d
1 changed files with 1 additions and 1 deletions

View File

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