Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 3 contributors
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/pixel-tracker.js
  2. +1 −1  package.json
View
5 lib/pixel-tracker.js
@@ -16,7 +16,8 @@ var fs = require('fs')
, Sequence = require('sequence')
, fns = []
, conf = {
- disable_cookies: false
+ disable_cookies: false,
+ maxAge: 2592000000
}
function use (fn) {
@@ -39,7 +40,7 @@ function middleware (req, res, next) {
_getUserToken(function (e, token) {
req.cookies._tracker = token
res.cookie('_tracker', req.cookies._tracker, {
- expires: new Date(Date.now() + 900000),
+ maxAge: conf.maxAge,
httpOnly: true
})
res.end(pixel, 'binary')
View
2  package.json
@@ -6,7 +6,7 @@
"name": "pixel-tracker",
"description": "a simple pixel tracker for node.js",
"version": "0.0.2",
- "homepage": "https://github.com/blobaum/pixel-tracker",
+ "homepage": "https://github.com/tblobaum/pixel-tracker",
"repository": {
"url": ""
},

No commit comments for this range

Something went wrong with that request. Please try again.