diff --git a/auth_simple.go b/auth_simple.go index 297c67c..8dad49d 100644 --- a/auth_simple.go +++ b/auth_simple.go @@ -84,6 +84,7 @@ func (a authSimple) DetectUser(res http.ResponseWriter, r *http.Request) (string } // We had a cookie, lets renew it + sess.Options = mainCfg.GetSessionOpts() if err := sess.Save(r, res); err != nil { return "", nil, err } diff --git a/auth_yubikey.go b/auth_yubikey.go index 5ae613b..86e04a3 100644 --- a/auth_yubikey.go +++ b/auth_yubikey.go @@ -67,6 +67,7 @@ func (a authYubikey) DetectUser(res http.ResponseWriter, r *http.Request) (strin } // We had a cookie, lets renew it + sess.Options = mainCfg.GetSessionOpts() if err := sess.Save(r, res); err != nil { return "", nil, err }