You'll probably find that a combination of SSL and .htaccess will be your most secure method. That's what I use if what I'm doing REALLY has to be secure. If the data isn't really that sensitive, I usually do a login routine in php, and set a session variable, and check that it's set on each page that needs be protected, simply because it looks nicer, and that's what people like 😉