查看ASP Session 变量的小工具

2016-01-29 18:38 21 1 收藏

查看ASP Session 变量的小工具,查看ASP Session 变量的小工具

【 tulaoshi.com - ASP 】

 

<%@ LANGUAGE="VBSCRIPT" %
<%
'#####################################################
'Function: 
'           List server Session variable &  Application  variable
'Author: Hardy He
'Date:   2003-3-12 23:30
'Memo: Be care for diffrent virtul path show diffrent Session
'#####################################################
%
<table border="2" cellspacing="1" bordercolor="#800000" width="100%" id="AutoNumber1" bordercolorlight="#808080" bordercolordark="#FFFFFF" height="37" bgcolor="#D6D3CE"
<%
  Dim sessitem
   
 
  response.write "SessionID: " & Session.SessionID & "<br"
  response.write "List of " & Session.Contents.Count & "   items in Session  contents collection: "
 
 
  intItem=1
  For Each sessitem in Session.Contents
    response.write "<tr"
    If IsObject(Session.Contents(sessitem)) Then
         Response.Write  "<td"+CStr(intItem) + "</td"
           Response.Write  "<td"+sessitem+ "</td"
           Response.Write  "<td"+"Session object"+ "</td"
    Else
      If IsArray(Session.Contents(sessitem)) Then        
        Response.Write  "<td"+CStr(intItem) + "</td"
         Response.Write  "<td"+"Array Object "+ "</td" + "<td"
                 
         For each objArray in Session.Contents(sessitem)
         Response.Write  "***;"
         Next
         Response.Write "</td"
                 
      Else
             Response.Write  "<td"+CStr(intItem) + "</td"
        Response.Write  "<td"+ sessitem + "</td"
        Response.Write  "<td"+ CStr(Session.Contents(sessitem)) + "</td"        
      End If
    End If
    response.write "</tr"
    intItem=intItem+1  
  Next
 
%
</table

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/asp/)

<br
<hr
LIST Application

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/asp/)

<hr
<table border="2" cellspacing="1" bordercolor="#800000" width="100%" id="AutoNumber1" bordercolorlight="#808080" bordercolordark="#FFFFFF" height="37" bgcolor="#D6D3CE"
<%

   intItem=1
   For Each Key in Application.Contents

    Response.Write  "<tr"
    If IsObject(Application.Contents(intItem)) Then
    
     Response.Write  "<td"+CStr(intItem) + "</td"
     Response.Write  "<td"+CStr(Key) + "</td"
     Response.Write  "<td"+"Object" + "</td"
    
    Else   
     Response.Write  "<td"+CStr(intItem) + "</td"
     Response.Write  "<td"+CStr(Key) + "</t

来源:https://www.tulaoshi.com/n/20160129/1506663.html

延伸阅读
标签: 电脑入门
Windows系统下已经有不少的驱动备份还原工具了,但备份下来的驱动包往往需要人工修改后才能在WinPE中使用,下面就为大家介绍一款备份后可用于PE的工具--GetPeDriver。 先在正常的系统中打开GetPeDriver,在软件列出的设备中选择你想要备份的驱动,然后双击[分析INF](上述操作也可以通过双击显示的设备来完成)。 双击[分析INF]后会转入INF优化...
如何移除微信的小工具?   第一步: 打开微信客户端,选择联系人进行聊天,在聊天框中点击+进入微信的附件栏。在附件栏中,我们除了看见自带的附件外,更多的就是从外部接入的软件了。 第二步: 那么我们在微信附件栏中,点击+进入,工具管理,在工具管理中我们在已在附件栏里看到已添加的功能,我们长按工具,点击...
标签: windows系统
Win8实用小工具推荐   这是个绿色工具,不仅支持Windows 8,也可以在Win7下使用,文件包里有对应系统的版本。解包后双击ShutCP.exe文件就会打开电源相关选项,如下图所示: 电源选项一应俱全 你可以把这个程序文件固定到Win8的开始屏幕上,这样下次要关机/重启的时候就方便多了。 固定到开始屏幕,用起来更方便...
标签: 电脑入门
相信很多朋友都已经用上Windows 7,在使用过程中是不是还有不太明白的地方呢?本站将采用寓教于乐的方式答疑解惑,通过精彩生动的漫画帮助大家学习Windows 7 。
标签: 电脑入门
Doshboard是MAC中一个很实用的工具栏,我们可以在Doshboard中管理我们的常用小工具。今天图老师小编给大家介绍Doshboard的一个实用小技巧吧,希望对大家有所帮助。 Doshboard的使用技巧: 通过Dock上的Doshboard快捷或通过屏幕热点角触发系统的Dashboard功能后,很多基于Dashboard的小工具就显示出来了。 在Dashboard界面中点击屏幕左...

经验教程

375

收藏

57
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部