From 518e552ff80cb25554a10111b4a71173aeeebeb6 Mon Sep 17 00:00:00 2001 From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com> Date: Thu, 26 Mar 2020 12:58:29 -0400 Subject: [PATCH] Make the session cookie work with the terminal --- pkg/hypervisor/user_manager.go | 2 ++ 1 file changed, 2 insertions(+) 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,