Asp session 모든 변수 나열

807 단어 session
<%@ Language=VBScript %>

<% Option Explicit %>

<% 

   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

%> 

좋은 웹페이지 즐겨찾기