If I understand what you're asking here you might try:
http://rubyonrails.org/
This helped me put up a basic frame work for a CMS, complete with an account, secured login, etc.
If you're just asking about hiding pages until a password has been inputted then a Php type script might be...