<!
<!
<%
if cstr(request("code"))<>cstr(session("getcode")) then
response
response
response
end if
dim userid
username=request("username")
password=md
set rs=server
sql="select username
rs
if rs
response
else
session("username")=rs("username")
if day(rs("lastlogin"))<>day(date()) then
if rs("jifen
rs("jifen
else
rs("jifen
end if
end if
rs("lastlogin")=rs("thislogin")
rs("thislogin")=now()
rs("logins")=rs("logins")+
rs
session
response
end if
rs
set rs=nothing
conn
set conn=nothing
%>
From:http://tw.wingwit.com/Article/program/net/201311/14351.html