implementing session expiration comparison