Implemented session.getExpiry, session.hasExpired.