Make a copy of Options for each new session

This commit is contained in:
Jacob Walker
2015-05-06 11:10:11 -05:00
parent 951665cd6d
commit cbe9f2afe4
2 changed files with 30 additions and 1 deletions

View File

@@ -74,7 +74,8 @@ func (db *PGStore) New(r *http.Request, name string) (*sessions.Session, error)
if session == nil {
return session, nil
}
session.Options = &(*db.Options)
opts := *db.Options
session.Options = &(opts)
session.IsNew = true
var err error