summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc.go b/doc.go
index 24ba077..c8eb758 100644
--- a/doc.go
+++ b/doc.go
@@ -113,8 +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