cookies与session

<%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
%>

    A+
发布日期:2007年03月21日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: