View Single Post
  #5 (permalink)  
Old Aug 9th, 2004, 09:09
Smokie Smokie is offline
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
The normal way to combat this is to create an include file which you include in all the pages which need to be password protected.

The code for this would look something like this:
Code: Select all
If Session("Authenticated")=False Then
Response.Redirect "Login.asp"
End If
...of course when the user logs in you need to created a session called "Authenticated" and set it to True.

Hope that helps