Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password protect hyperlink

Status
Not open for further replies.

cissilya

IS-IT--Management
Feb 15, 2005
42
0
0
US
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.


<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Ham and Jam - British & Commonwealth forces mod for Half Life 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top