clear session when creating tokens