Closing pop in tab if there is active session in another tab / browser.

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