I have a website with several hyperlinkes, i would like to password protect each link is there an easy way of doing it or do i need to create a login page for each.
If someone has a suggestion about this it would be a great help.
Sorry, hit "Post" too soon.
Also, if you are using a server side language such as PHP it's fairly simple to create a login script using session variables.
Basically create a login form, then check the details entered against some kind of user database. If the login is valid then write a session variable.
At the top of each page to be protected, check for the presence of the session variable. If it's there, then great. If not then redirect to the login form.
It's possible to include all this into a single script and include() it at the top of each page to be protected.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.