From f648cdb02b06010aa0e50396eb436155898014e0 Mon Sep 17 00:00:00 2001 From: Daniel Moll Date: Tue, 11 Apr 2017 11:27:24 +0200 Subject: [PATCH] added process id to cookie --- config/express.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/express.js b/config/express.js index 3920808..c60398c 100644 --- a/config/express.js +++ b/config/express.js @@ -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(); });