欢迎光临
我们一直在努力

监测你的站点使用多少session和application的程序

建站超值云服务器,限时71元/月

<%@ language=vbscript %>

<% option explicit %>

您的sessionid号是:<%=session.sessionid%><br>

<%

response.write "在你的程序中一共使用了 " & session.contents.count & _

" 个session变量<p>"

dim strname, iloop

for each strname in session.contents

判断一个session变量是否为数组

if isarray(session(strname)) then

如果是数组,那么罗列出所有的数组元素内容

for iloop = lbound(session(strname)) to ubound(session(strname))

response.write strname & "(" & iloop & ") – " & _

session(strname)(iloop) & "<br>"

next

else

如果不是数组,那么直接显示

response.write strname & " – " & session.contents(strname) & "<br>"

end if

next

response.write "在你的程序中一共使用了 " & application.contents.count & _

" 个application变量<p>"

%>

——————————

本站的检测结果:

在你的程序中一共使用了 3 个session变量

在你的程序中一共使用了 4 个application变量

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 监测你的站点使用多少session和application的程序
分享到: 更多 (0)

相关推荐

  • 暂无文章