Update Readme: Added HttpOnly, Secure flags for setting the cookie

This commit is contained in:
0x434D53 2016-05-25 16:56:53 +02:00
parent 667fe4e346
commit f5b37263f0

View file

@ -45,6 +45,8 @@ func SetCookieHandler(w http.ResponseWriter, r *http.Request) {
Name: "cookie-name",
Value: encoded,
Path: "/",
Secure: true,
HttpOnly: true,
}
http.SetCookie(w, cookie)
}