Fixed membership sign out issue when domain is set.
Merge branch 'master' into new_milestone