Fixed clearSessionTimer, created invalidateSession, added invalid TTL test