Logs the current member out of the site.
The logout()
function logs the current member out of the site.
Notes:
The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.
The frontend Member APIs can only be used once the page has loaded. Therefore,
you must use them in code that's contained in or is called from the
onReady()
or any element event.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.