查看服务器Application/Session变量工具
作者:Eve Cole
更新时间:2009-06-24 17:04:58
< %@LANGUAGE="javascript " CODEPAGE="936"%>
<%
响应.过期= 0;
响应.Buffer = true;
var tPageStartTime = new Date();
%>
<html>
<头>
<title>网站-应用变量-会话变量</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<样式类型=文本/css>
正文,td {字体大小:10pt;字体系列:“Arial”、“Helvetica”、“sans-serif”}
.Table1 { 右边框:#FF9900 1px 实心;顶部边框:#FF9900 1px 实心;字体大小:9pt;左边框:#FF9900 1px 实心;边框底部:#FF9900 1px 实心}
.Table2 { 背景颜色:#FF9900 }
.TR1 { 背景颜色:#FF9955 }
.TD1 { 右边框:#FEDFB3 1px 实心;顶部边框:#FEDFB3 1px 实心;左边框:#FEDFB3 1px 实心;颜色:#ff9900;边框底部:#FEDFB3 1px 实心;背景颜色:#FEDFB3}
.TD2 {背景颜色:#FEEED6;填充:7px;}
</风格>
<table width="750" border="0" cellpadding="3" cellspacing="1" class="Table1">
<tr>
<td类=“TR1”>
<表格宽度=“100%”边框=“0”cellspacing=“0”cellpadding=“0”>
<tr>
<td><font color="#FFFFFF"face="Verdana, Arial, Helvetica, sans-serif"> <strong> 服务器应用标记 [共 <%=Application.Contents.Count%> 个]
<script>showTools();</script></strong></font></td>
<td对齐=“右”> </td>
</tr>
</表></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="Table2">
<tr>
<td width="35%" class="TD1"> 变量</td>
<td width="65%" class="TD1">值</td>
</tr>
<%
var iCount = 0;
var sVarType = "";
var oApplication = new Enumerator(Application.Contents);
var oApp;
for(;!oApplication.atEnd();oApplication.moveNext()){
oApp = oApplication.item();
sVarType = typeof(Application.Contents(oApp));
++i计数;
%>
<tr>
<tdalign="left" valign="middle"class="TD2"><b><%=oApp%></b><br><i 已禁用>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<td valign="middle" class="TD2">
<%
尝试{
如果(sVarType==“未知”){
var oTmp = new VBArray(Application.Contents(oApp));
Response.Write(Server.HTMLEncode(oTmp.toArray()));
}其他 Response.Write(Server.HTMLEncode(Application.Contents(oApp)));
}抓住(e){
Response.Write("<i 已禁用>[未知]</i>");
}
%>
</td>
</tr>
<%
}
如果(!iCount){
%>
<tr>
<tdalign="left" valign="middle" class="TD2" colspan="2">没有应用变量</td>
</tr>
<%
}
%>
</表></td>
</tr>
<tr>
<td height="5" class="TR1" colspan="2"></td>
</tr>
</表>
<br>
<table width="750" border="0" cellpadding="3" cellspacing="1" class="Table1">
<tr>
<td类=“TR1”>
<表格宽度=“100%”边框=“0”cellspacing=“0”cellpadding=“0”>
<tr>
<td><font color="#FFFFFF"face="Verdana, Arial, Helvetica, sans-serif"> <strong> 服务器会话变量 [共 <%=Session.Contents.Count%> 个]
<script>showTools();</script></strong></font></td>
<tdalign="right">当前会话编号:<%=Session.SessionID%> </td>
</tr>
</表></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="Table2">
<tr>
<td width="30%" class="TD1"> 变量</td>
<td width="70%" class="TD1">值</td>
</tr>
<%
var iCount = 0;
var sVarType = "";
var oSession = new Enumerator(Session.Contents);
var oses;
for(;!oSession.atEnd();oSession.moveNext()){
oSes = oSession.item();
sVarType = typeof(Session.Contents(oSes));
++i计数;
%>
<tr>
<tdalign="left" valign="middle"class="TD2"><b><%=oSes%></b><br><i 已禁用>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<td valign="middle" class="TD2">
<%
尝试{
if(sVarType=="未知"){
var oTmp = new VBArray(Session.Contents(oSes));
Response.Write(Server.HTMLEncode(oTmp.toArray()));
}其他 Response.Write(Server.HTMLEncode(Session.Contents(oSes)));
}catch(e){ Response.Write("<i 已禁用>[未知]</i>");
}
%>
</td>
</tr>
<%
}
如果(!iCount){
%>
<tr>
<tdalign="left" valign="middle" class="TD2" colspan="2">没有会话变量</td>
</tr>
<%
}
%>
</表></td>
</tr>
<tr>
<td height="5" class="TR1" colspan="2"></td>
</tr>
</表>
<% tPageEndTime = new Date(); %>
<center> <%="<br><br>页面执行时间:约<font color='#990000'><b>"+((tPageEndTime-tPageStartTime))+"</b></font>毫秒“%></中心>
</正文></html>