<%response.buffer="true"%>
cookies使用
<br/>
<%
dim varnumber
varnumber=request.Cookies("varnumber")
if varnumber="" then
varnumber=1
else
varnumber=varnumber+1
end if
response.write "你是第"&varnumber&"次访问该网页!"
response.cookies("varnumber")=varnumber
response.cookies("varnumber").expires=#2007-3-22#
response.write "<br/>"
%>
session与数组使用
<br/>
<%
dim username(1)
username(0)="test"
username(1)="yan"
session("username")=username
for i=0 to ubound(username)
response.write "<font style='text-decoration:underline;text-transform:capitalize;color:green;'>"& session("username")(i) &"</font>"&"<br/>"
next
%>