actionit, that link shows a way of protecting a page that is very easy to bypass and should never be used to try and protect any resource of value.
Anything that relies on javascript for a security solution should be avoided for all but the most basic protection.
forresthowie doesn't say, but it's possible that password protection at an individual level - like a subscription - may be the aim, rather than a single password for all users to share. This would require a different approach to just password protecting a directory on the server.
I looked at Incomedia and found this:
Once you have created your shopping cart, you just include it in a Members' area in the website: customers have to register to obtain a login and password.
This would make me think that the password protection is more sophisticated than just protecting a directory via a single password for all users. It's maintaining a database of registered users and their password.
Bookmarks