Permalink
Browse files

more refactoring of cookie example

  • Loading branch information...
1 parent 3205ee7 commit b67bacea186270cce033fbe72755788716416954 @tj tj committed Jun 2, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 examples/cookies/app.js
View
@@ -37,9 +37,7 @@ app.get('/forget', function(req, res){
app.post('/', function(req, res){
var minute = 60000;
- if (req.body.remember) {
- res.cookie('remember', 1, { maxAge: minute, path: '/' });
- }
+ if (req.body.remember) res.cookie('remember', 1, { maxAge: minute });
res.redirect('back');
});

0 comments on commit b67bace

Please sign in to comment.