Skip to content

Instantly share code, notes, and snippets.

@andineck

andineck/cookie.js

Last active Aug 29, 2015
Embed
What would you like to do?
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