session hasExpired method