Modified getSessionTimeLeft,  so that the pop up closes by itself if there is an active session in another tab/browser