Skip to content

Commit

Permalink
update README (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmike committed Aug 14, 2020
1 parent 96b05ff commit 513992d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ obj, err := securecookie.New("session", key, securecookie.Params{
Domain: "example.com", // cookie received only when URL domain matches this one
MaxAge: 3600, // cookie becomes invalid 3600 seconds after it is set
HTTPOnly: true, // disallow access by remote javascript code
Secure: true, // cookie received only with HTTPS, never with HTTP
Secure: true, // cookie received only with HTTPS, never with HTTP
SameSite: Lax, // cookie received with same or sub-domain names
})
if err != nil {
// ...
Expand All @@ -99,7 +100,8 @@ var obj = securecookie.MustNew("Auth", key, securecookie.Params{
Domain: "example.com", // cookie received only when URL domain matches this one
MaxAge: 3600, // cookie becomes invalid 3600 seconds after it is set
HTTPOnly: true, // disallow access by remote javascript code
Secure: true, // cookie received only with HTTPS, never with HTTP
Secure: true, // cookie received only with HTTPS, never with HTTP
SameSite: Lax, // cookie received with same or sub-domain names
}
```

Expand Down

0 comments on commit 513992d

Please sign in to comment.