From f5b37263f070b2cf0fd8d0bf1b4bbe206b2737e1 Mon Sep 17 00:00:00 2001 From: 0x434D53 Date: Wed, 25 May 2016 16:56:53 +0200 Subject: Update Readme: Added HttpOnly, Secure flags for setting the cookie --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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) } -- cgit v1.2.3