From 876229715891fd6faeaed2779c026b129c5dee3d Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 4 Sep 2014 18:07:31 +0100 Subject: [PATCH] touch the session rather than setting the expires, same result --- services/web/app/coffee/infrastructure/Server.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/Server.coffee b/services/web/app/coffee/infrastructure/Server.coffee index 64d92202a3..cb4709087f 100644 --- a/services/web/app/coffee/infrastructure/Server.coffee +++ b/services/web/app/coffee/infrastructure/Server.coffee @@ -64,7 +64,7 @@ app.configure () -> # Measure expiry from last request, not last login app.use (req, res, next) -> - req.session.expires = Date.now() + cookieSessionLength + req.session.touch() next() app.use (req, res, next) ->