Skip to content

Instantly share code, notes, and snippets.

@andineck
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andineck/3d0bf62bbd297ed2aee0 to your computer and use it in GitHub Desktop.
Save andineck/3d0bf62bbd297ed2aee0 to your computer and use it in GitHub Desktop.
cookie expires vs max-age
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