Skip to content

Commit

Permalink
added process id to cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoll1974 committed Apr 11, 2017
1 parent 8c3bae4 commit f648cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/express.js
Expand Up @@ -114,7 +114,7 @@ module.exports = function() {
//set cookie based on host name for sockets.io sticky session
app.use(function (req, res, next) {

res.cookie('TARGETS-IO-HOST',os.hostname(), { maxAge: 9000000, path: '/' })
res.cookie('TARGETS-IO-HOST',os.hostname() + process.pid , { maxAge: 9000000, path: '/' })

next();
});
Expand Down

0 comments on commit f648cdb

Please sign in to comment.