In this chapter, you created a login system using the Log In User server behavior, and you used the Restrict Access To Page server behavior to prevent unauthorized access to all of the quotes administration system pages. You also made use of the Log Out User server behavior to provide an easy way to remove the session variables created when you log in.
You built a new user creation page that makes use of the Check New Username server behavior, ensuring that no two users in the database will have the same username and password combination, and you added code to the login form that offers to “remember” users’ login details for them using cookies stored on their computer.
Finally, you expanded upon the code that Dreamweaver writes for you in the Log In User server behavior to redirect users back to the page they tried to access without logging in first (a very user-friendly addition!), and you also added an extra session variable to those created for you by Dreamweaver’s code, expanding upon the level of complexity you can add to your own developments in future.
In the next chapter, you’ll look at creating a searchable website that uses some neat coding techniques to help bring search results to life and move you beyond the basics that the built-in server behaviors provide.
Unable to display preview. Download preview PDF.