Function logout

  • Logs out the user and sets global.loggingOut to true.

    NOTE: Does not abort pending requests.

    Returns void