wangchuanjin пре 2 година
родитељ
комит
7759ada396
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/github.com/go-xweb/httpsession/transfer.go

+ 1 - 0
src/github.com/go-xweb/httpsession/transfer.go

@@ -80,6 +80,7 @@ func (transfer *CookieTransfer) Set(req *http.Request, rw http.ResponseWriter, i
 			cookie.MaxAge = int(transfer.MaxAge / time.Second)
 			//cookie.Expires = time.Now().Add(transfer.maxAge)
 		}
+		cookie.Domain = transfer.Domain
 	}
 	http.SetCookie(rw, cookie)
 }