This topic is locked

Security Using Access DB

11/8/2004 6:00:16 PM
ASPRunnerPro General questions
D
dpkona author

I have a security table built using MS Access. I have three different databases that need security. The security table is working fine for the database/project where the table resides. I would like to use the same security table in the other two databases/projects.
I created a login page for the first one and no login page for the last two database.
I was hoping that I could use the Session("UserID") variable to pass the security settings on to the next two pages.
Thanks in advance for any thoughts.

Sergey Kornilov admin 11/10/2004

Hi,
if you need basic security you can insert the following code snippet into the beginning of each page:
<%

If Session("UserID")="" then

Response.Write "<p>Your session has expired. Please <a href=""login.asp"">login</a> again</p>"

Response.End

End If

%>