void function customer_logout(string $redirect=NULL)
$redirect
string
specifies an URL to redirect the customer to.
Closes a session of a current customer and optionally redirects browser to a specified address.
Use this function to create the Logout page.
The following code represents contents of a simplest logout page.