Use the hostname as the domain when no domain is supplied when creating the session.