When a user logs in successfully, a session variable is created that consists of the user name. When the user leaves your site, you can use the Log Out User server behavior to clear the session variable and redirect the user to another page (usually a goodbye or thank you page).
You can invoke the Log Out User server behavior when the user clicks a link or when a specific page loads.