For high security, there are a couple of levels of security you need to address:
1. Data Security: To ensure this type of security, you need to ensure that all access to the database is secure. For SQL Server, this means at minimum stored procedures. For added security you should only allow access to the stored procedures via MTS roles (ie, programmed components). Only the dbo role should access the raw tables.
2. Code security. While ASP is great for modeling, for secure apps you should migrate as much code from ASP to VB COM+/MTS components as quickly as possible. To set up code for migration, consult:
http://www.asptoday.com/articles/20000121.htm
3. Logon security: To have a bit of logon security in ASP, just set a session token when the user logs on. This session token can then be tracked, expired, etc. GUIDs are great for tokens as they are 128 bit numbers expressed in hex. If you are using SQL Server, you can create a procedure to return NEWID() to be stored for this token (any number will do here, but GUIDs add an abstraction to the process that the system can generate for you).
The easiest way to use the token (will not work on a web farm) is in session:
<%
'... create token here
Session("token") = 'token'
%>
To check, you can either do a simple check (first draft):
<%
If session("token") <> vbNullString
'...
End If
%>
or run into a VB component for more info:
<%
Dim objToken 'As MyObject.clsToken
Set objToken = Server.CreateObject("MyObject.clsToken")
If objToken.CheckToken(Session("Token")) then
'..logged in
Else
'... not logged in
End If
This should give you a start.
Gregory A. Beamer
Internet Architecture Consultant
MCP: +I, SE, SD, DBA