Changed session timeout logic to be able to handle multiple opened tabs