Explorar el Código

touch the session rather than setting the expires, same result

Henry Oswald hace 12 años
padre
commit
8762297158
Se han modificado 1 ficheros con 1 adiciones y 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) ->