首 页
产品
方案
体验
视频
优势
客户
知识
联系
电话:0791-88108826
微信:lvyeoa
 
绿叶OA优势
技术框架
绿叶OA办公系统客户培训现场
绿叶OA办公软件客户案例
电话:0791-88108826
售前:413400260
售前:2645991708
售后:2449720376
售后:1479170164

监测你的站点使用多少session和application的程序
                                
发布时间:2006-8-26 12:49:32



<%@ 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变量


联系我们
电话:0791-88108826
微信:lvyeoa
QQ:413400260
QQ:2645991708
Email:oa169@163.com

核心产品

医院内部办公系统
智慧政务协同办公
企业OA办公平台
教育综合办公系统
建筑企业网络办公
移动办公系统

微信联系

©2007-2024 南昌绿新软件技术有限公司赣ICP备12000799号