Skip to content

Instantly share code, notes, and snippets.

@BrentAureli
Created April 22, 2015 14:23
Show Gist options
  • Save BrentAureli/0834cad5912ba6a6e1d9 to your computer and use it in GitHub Desktop.
Save BrentAureli/0834cad5912ba6a6e1d9 to your computer and use it in GitHub Desktop.
set = function(req, res) {
res.cookie('login_token', +new Date(), { maxAge: 3600000, path: '/' });
res.redirect('/');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment