summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorKamil Kisiel <kamil@kamilkisiel.net>2014-01-06 11:44:15 +0400
committerKamil Kisiel <kamil@kamilkisiel.net>2014-01-06 11:44:15 +0400
commitd40f74366ec3b1e9d5a3b879c112293eca3e1286 (patch)
treeb7f6652aededae4e89ffbd3af115108af73e766a /doc.go
parentc9bf01c18818f7738e6b2670f1fd92f710ecb734 (diff)
parent6e8111651587e2cf4de2570a5d3676a2397f82ea (diff)
Merge pull request #21 from ancarda/patch-1
Fixed Formatting Issue
Diffstat (limited to 'doc.go')
-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