logout( )


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.

Method Declaration
Copy
Request
This method does not take any parameters
Did this help?