网乐原科技

直播中

news center新闻中心
首页 > 资讯中心 > 软件技术

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

发布时间:2008-07-09     阅读数: 次       来源:网乐原科技
<%@ 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变量

网乐原科技

客服热线:0771-5761507

QQ:53290011

QQ邮箱:53290011@qq.com

工作时间:周一到周五 9:00-18:00

地址:广西南宁市江南万达写字楼C16栋1309室

物联网开发

关注我们

微信小商店 腾讯QQ客服 微信客服