aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc.go b/doc.go
index 24ba077..f9f80cb 100644
--- a/doc.go
+++ b/doc.go
@@ -113,9 +113,9 @@ fields are basically a subset of http.Cookie fields. Let's change the
maximum age of a session to one week:
session.Options = &sessions.Options{
- Path: "/",
- MaxAge: 86400 * 7,
- }
+ Path: "/",
+ MaxAge: 86400 * 7,
+ HttpOnly: true}
Sometimes we may want to change authentication and/or encryption keys without
breaking existing sessions. The CookieStore supports key rotation, and to use