Răsfoiți Sursa

touch the session rather than setting the expires, same result

Henry Oswald 12 ani în urmă
părinte
comite
8762297158
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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) ->