Click here to Skip to main content
15,888,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

All I want to do is to create a password for my Web page and then promt the user to enter the required password to get access to the page.

Thank you.
Posted
Comments
ZurdoDev 6-Apr-12 11:43am    
So, what have you done so far? There is not just one way to do this so you need to get started on it and then ask if you run into a specific issue.

1 solution

If you are using a database and dynamic pages then you can do it in code. There are plenty of examples on the internet.

If the pages are static and you are not using a database then you can use .htpasswd/.htaccess - you will need to search for how to configure this for your particular choice of server.
 
Share this answer
 
Comments
VJ Reddy 1-Jun-12 19:47pm    
Good answer. 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900