Added session time checking