depends on your type of authentication...
As my esteemed colleague tabish mentioned, you can use .htaccess... but personally I prefer database driven authentication.
Once you decide on a method, come back with more questions...
Personally, I used: http://www.zend.com/zend/tut/authentication.php as a guide...