Chapter 5. Cookies and Authentication

Image

CREATE A MEMBERS-ONLY AREA FOR YOUR SITE

Have you ever clicked a link at a site only to be told “You must be a member to view this page”? When this happens, you usually are then presented with a Log In form where you can authenticate yourself as a member by entering your member credentials, such as a user name and password. There’s also usually a Sign Up Now link to a longer form where nonmembers can sign up to become members.

From a security viewpoint, without some kind of viewing restrictions in place, you cannot protect documents that are meant only for certain people, such as the staff of your company, ...

Get Codin’ for the Web: A Designer’s Guide to Developing Dynamic Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.