Mercurial > gemma
view client/src/lib/session.js @ 261:ab9859981ee3
If a user got renamed kick her/him from the connection pool.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 27 Jul 2018 14:55:47 +0200 |
parents | 4bf2173748f3 |
children | 27502291e564 |
line wrap: on
line source
function sessionStillActive(expiresFromPastSession) { if (!expiresFromPastSession) return false; const now = Date.now(); const stillActive = now < expiresFromPastSession; return stillActive; } function toMillisFromString(timestring) { return timestring * 1000; } export { sessionStillActive, toMillisFromString };