Skip to content

Commit

Permalink
Merge pull request #258 from Senyoret1/cookie
Browse files Browse the repository at this point in the history
Make the session cookie work with the terminal
  • Loading branch information
jdknives authored Mar 27, 2020
2 parents 6dfb639 + 518e552 commit 1a9be99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/hypervisor/user_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1a9be99

Please sign in to comment.