Logging out users
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.
To add a link to let users log out:
- Select text or an image on a page to serve as the link.
- In the Server Behaviors panel (Window > Behaviors), click the Plus (+) button and select User Authentication > Log Out User.
The Log Out User dialog box appears.
- Specify a page to open when the user clicks the link.
The page is usually a "goodbye" or "thank you" page.
- Click OK.
To log out a user when a specific page loads:
- Open the page that will load in Dreamweaver.
The page is usually a "goodbye" or "thank you" page.
- In the Server Behaviors panel, click the Plus (+) button and select User Authentication > Log Out User.
The Log Out User dialog box appears.
- Select the Log Out When Page Loads option.
- Click OK.
Related topics
- Building a page only authorized users can access