ssi_logout

Description

Displays a logout link.

Syntax

void ssi_logout ([string $redirect_to[, string $output_method]])



Parameter $redirect_to

Expected type: String
Description: The URL to redirect the user to once the logout. If not specified, redirects them to the forum index.



Parameter $output_method

Expected type: String
Description: Outputs the link if 'echo' or returns it if anything else


Notes

  • If the user is a guest, returns false
  • redirect_to specifies where the user should be sent after logging out.
Advertisement: