
842
Part IV
Incorporating Dynamic Data
FIGURE 23-23
Define as many access levels as you want to restrict certain sections of your site to a subset of your members.
6. Enter the path to the file to which you redirect unauthorized users in the If Access Denied,
Go To field. Alternatively, click the Browse button to locate the file.
7. Click OK when you’re finished.
Helping users log out
It’s always a good idea to give your customer an easy way to log out of your site—a way that also
destroys all the session variables associated with his login and ensures that his coworkers can’t jump
on his computer (right after he leaves for some coffee) and gain access to information they shouldn’t
have. Logging out a user in Dreamweaver is just a matter of one simple server behavior.
To use the Log Out User server behavior, follow these steps:
1. To apply the server behavior to a specific link on the page, select that link.
2. From the Server Behaviors panel, click the Add (+) button and choose User Authentication ➪
Log Out User. The Log Out User dialog box, shown in Figure 23-24, opens.
FIGURE 23-24
You can log a user out automatically by choosing the Log Out When Page Loads
option on an order confirmation page.
82523c23.indd 842 2/18/09 1:34:07 PM