<%
Dim lgn,pas ' Login name & Pasword
lgn=cstr(Request("login"))
pas=cstr(REquest("pass"))
if ((lgn="login") AND (pas="123")) then
session("admin") = True
response.Redirect("somepage.asp")
end if
'now if the user have not logged in then
if NOT(session("admin")) then Response.Redirect("NoAccess.asp")
%>
The simplest code will look like this.
Reputation Points: 9
Solved Threads: 1
Junior Poster in Training
Offline 91 posts
since Sep 2004