diff options
author | Kamil Kisiel <kamil@kamilkisiel.net> | 2014-01-06 11:44:15 +0400 |
---|---|---|
committer | Kamil Kisiel <kamil@kamilkisiel.net> | 2014-01-06 11:44:15 +0400 |
commit | d40f74366ec3b1e9d5a3b879c112293eca3e1286 (patch) | |
tree | b7f6652aededae4e89ffbd3af115108af73e766a /doc.go | |
parent | c9bf01c18818f7738e6b2670f1fd92f710ecb734 (diff) | |
parent | 6e8111651587e2cf4de2570a5d3676a2397f82ea (diff) |
Merge pull request #21 from ancarda/patch-1
Fixed Formatting Issue
Diffstat (limited to 'doc.go')
-rw-r--r-- | doc.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |