Skip to content

Commit 23418a6

Browse files
Merge pull request revel#1174 from kumakichi/master
Adds cookie lifetime for Firefox
2 parents c64b8e1 + e80d905 commit 23418a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (s Session) Cookie() *http.Cookie {
9797
HttpOnly: true,
9898
Secure: CookieSecure,
9999
Expires: ts.UTC(),
100+
MaxAge: int(expireAfterDuration.Seconds()),
100101
}
101102
}
102103

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy