Explorar o código

touch the session rather than setting the expires, same result

Henry Oswald %!s(int64=12) %!d(string=hai) anos
pai
achega
8762297158
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/web/app/coffee/infrastructure/Server.coffee

+ 1 - 1
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) ->