Kevin: added a method to find out how much time remains in a session