Last active
August 29, 2015 14:17
-
-
Save andineck/3d0bf62bbd297ed2aee0 to your computer and use it in GitHub Desktop.
cookie expires vs max-age
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var date = new Date() | |
date.setSeconds(date.getSeconds() + (60*60*24)) | |
// -> 1427260691127 | |
date.toGMTString() | |
// -> "Wed, 25 Mar 2015 05:18:11 GMT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment