Dreamweaver

Log out users (ColdFusion, ASP, JSP, PHP)

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.

Add a link to let users log out

  1. Select text or an image on a page to serve as the link.
  2. In the Server Behaviors panel (Window > Behaviors), click the Plus (+) button and select User Authentication > Log Out User.
  3. Specify a page to open when the user clicks the link, and click OK.

    The page is usually a goodbye or thank you page.

Log out users when a specific page loads

  1. Open the page that will load in Dreamweaver.

    The page is usually a goodbye or thank you page.

  2. In the Server Behaviors panel, click the Plus (+) button and select User Authentication > Log Out User.
  3. Select the Log Out When Page Loads option, and click OK.