diff --git a/pkg/hypervisor/user_manager.go b/pkg/hypervisor/user_manager.go index e66f6d5d26..2f479d3401 100644 --- a/pkg/hypervisor/user_manager.go +++ b/pkg/hypervisor/user_manager.go @@ -297,6 +297,7 @@ func (s *UserManager) newSession(w http.ResponseWriter, session Session) error { http.SetCookie(w, &http.Cookie{ Name: sessionCookieName, Value: value, + Path: s.c.Path, Domain: s.c.Domain, Expires: time.Now().Add(s.c.ExpiresDuration), Secure: s.c.Secure, @@ -324,6 +325,7 @@ func (s *UserManager) delSession(w http.ResponseWriter, r *http.Request) error { http.SetCookie(w, &http.Cookie{ Name: sessionCookieName, + Path: s.c.Path, Domain: s.c.Domain, MaxAge: -1, Secure: s.c.Secure,