• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. JavaScript Project: Setting ... > Handling Multiple Users and Password...

Handling Multiple Users and Passwords

Having a single password to access the protected page has one serious drawback: How do you deny access to users after they already know the password? If you want to be able to revoke privileges, then you need to configure your system to supply different passwords to different users. And as long as you're going that far, then you might as well assign user names, as well.

To handle multiple user names and passwords, you can use a variation on the script from the previous section. However, instead of using a single invisible GIF to test the legitimacy of a password, you'll create copies of the invisible GIF for each user. The name of each GIF file should have the following format:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint