summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0x434D53 <christoph.seufert@gmail.com>2016-05-25 17:56:53 +0300
committer0x434D53 <christoph.seufert@gmail.com>2016-05-25 17:56:53 +0300
commitf5b37263f070b2cf0fd8d0bf1b4bbe206b2737e1 (patch)
tree714adbaad95e04b393d5a88e44d8e8336a723b2a
parent667fe4e3466a040b780561fe9b51a83a3753eefc (diff)
Update Readme: Added HttpOnly, Secure flags for setting the cookie
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5ed299e..da112e4 100644
--- a/README.md
+++ b/README.md
@@ -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)
}