网站首页

家园论坛

老版论坛

家园博客

业界新闻

技术文档

下载中心

速查中心

图片中心

硬件资讯
上一篇:使用JSP开发WebMail系统  下一篇:在http和https之间转化
监测站点使用多少session和application的程序

来源: 作者: 添加日期:2006-1-3 9:54:01 点击次数:

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

 
设为首页 | 加入收藏 | 业务办理 | 友情链接 | 论坛版面 | 浙ICP备07502118号 |