Just as important, customers can easily identify themselves
on their return, thus accessing their account information and enabling it to be applied to a new order. You
may also want to restrict certain areas of your site to registered users or those who have paid for a subscription.
Various levels of sophistication are possible here, but the most fundamental requirements are a way to
identify returning customers and a way to add new ones.
Logging in existing customers
The most common way to identify returning customers is to allow them to log in. A login page can be as
simple as a three-element form: two text fields??”one for the username and one for the password??”and a
Submit button. The form connects to a data source containing a list of users and their passwords, among
other information, and verifies that the submitted username corresponds with the submitted password.
Dreamweaver accomplishes this task with the appropriately named Log In User server behavior.
The Log In User server behavior redirects authorized users to one page and unauthorized users to another.
In addition, it creates a session variable containing the username. This session variable can then be
employed on other pages as required.
To apply the Log In User server behavior, make sure your page has, at a minimum, a form with text fields
for the username and password, and a Submit button.
Pages:
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315