Ben,
personally, I like to stay away from cookies when it comes to more security. You can easily create a user login database with microsoft access, creating a userID, password, name, etc etc fields. then create a form on the login page, and then create a loginValidate page that will request the userID and password from the login page and compare it to the database. If there is a match for the userID and the password is correct, allow them access, if not, redirect them to a noaccess page or the login page. Simple, database, login.asp, and loginValidate.asp.
Then the only thing you have left to do is keep them from gaining access to all of your "member" pages. at the top of every one of those pages, put an include script:
<!-- #include file="/include/checkAccess.asp" -->
and make that file check for a memberFlag in the session state (which you set to 'true') during the loginValidate. If it's not, then redirect to a noaccess or login page. Here is examples:
---login.asp--------------------------------
<form method='post' action='loginValidate.asp' autocomplete='off'>
userID:<input type='text' name='userID'>
Password:<input type='password' name='password'>
<input type='submit' value='Submit'>
</form>
---loginValidate.asp-------------------------
<%
dim userID, password, sql
userID = request.form("userID"

password = request.form("password"

sql = "SELECT * FROM users WHERE (((users.userID)='" & userID & "') And ((users.password)='" & password & "'));"
set conn = server.CreateObject("ADODB.Connection"

DSNtemp = "DRIVER={Microsoft Access Driver (*.mdb)};"
DSNtemp = "DBQ=C:\InetPub\
conn.Open DSNtemp
set rs = server.CreateObject("ADODB.Recordset"

rs.Open sql, conn, 3, 3
if rs.eof then
session("memberFlag"

= false
response.redirect("login.asp"

else
session("memberFlag"

= true
response.redirect("memberPage.asp"

end if
conn.Close
set conn = nothing
%>
---checkAccess.asp---------------------------
if session("memberFlag"

<> true then
response.redirect("login.asp"

end if
---memberPage--------------------------------
<!-- #include file="include/checkAccess.asp" -->
<html>
<head>
<title>Member Area</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<BR>
Only your members can see this!
<BR>
</body>
</html>
####################################################
Make sense? Seams like a lot more, but it's not. And would be a lot more secure than cookies! Plus, if the user empties their cookies from their browser...then what? Here, it's all based on the database, and the user input for userID and password.
Anyquestions write back here, or email me at jimbob550@hotmail.com
- Ovatvvon