频道直达 - 学院 - 下载 - 交易 - 截图 - 特效 - 字库 - 手册 - 排名-工具 - 繁體
设为首页
加入收藏
联系我们
建站搜索: 虚拟主机  域名注册   常用广告代码      用户注册 | 用户登陆
您当前的位置:中国建站之家 -> 网站开发 -> ASP -> 文章内容
精彩推荐
热门文章
· 注册码大全二
· 注册码大全四
· 注册码大全一
· 通过google 赶快来赚..
· [图文] 头像-qq头像(..
· 要10G免费网络硬盘的..
· 注册码大全三
· 注册码大全十
· [图文] 梦幻背景图片..
· [图文] 卡通动物图片..
相关文章
· 在线旅游公司芒果网计划..
· Asp.Net结合JS在图层上显..
· 用FLASH画粗细变化线的两..
· 网站曝光色狼照片遭到质..
· 用FrontPage98 开 发ASP..
· 跟我学SQL:(三)使用SQL..
· 卡通动物图片5
· 改进性能和样式的 25+ A..
· .NET之ASP WebApplicati..
· fireWorks蒙板抠图
查看ASP Session 变量的小工具
作者:未知  来源:转载  发布时间:2005-9-15 20:39:03  发布人:acx

减小字体 增大字体

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

<br>
<hr>
LIST Application

<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) + "</td>"
     Response.Write  "<td>"+CStr(Application.Contents(intItem)) + "</td>"    
    End If
    intItem=intItem+1
    Response.Write  "</tr>"
   
  Next
 
 %>
</table>

[打 印]
[] [返回上一页] [收 藏]
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 人才招聘
网站合作、内容监督、商务咨询:QQ: 9576619
Copyright ? 2005--2008 中国建站之家版权所有
未经授权禁止转载、摘编、复制或建立镜像.如有违反,追究法律责任.
免责申明:中国建站之家(www.jz123.cn)上的所有提供下载的软件和资源
均来源于网络,为软件或程序作者提供和网友推荐收集整理而来,仅供学习
和研究使用。如有侵犯你的版权,请立即联系我们,本站将在3个工作日内删除。
粤ICP备05092265号