I use this in a real website:
<!--#INCLUDE FILE="config.asp"-->
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_func_common.asp"-->
'Get the MemberID from the forum login
set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString
'copying stuff from inc_header.asp...
strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name")
if trim(strDBNTUserName) <> "" and trim(Request.Cookies(strUniqueID & "User")("Pword")) <> "" then
mLev = cLng(chkUser(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"),-1))
else
MemberID = -1
mLev = 0
end If
my_conn.Close
Set my_conn = Nothing
You will need cookies set to forum for this to work. You may also have to add the forum path to the includes.