Session.Keys : Session class « Sessions « ASP.NET Tutorial






<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
         Sub Page_Load()
            Dim Key As String
            Message.Text = "Session Keys:"
            For Each Key in Session.Keys
               Message.Text &= "</br>Key:" & Key
               Message.Text &= "</br>Value:" & Session(Key)
            Next
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>








11.2.Session class
11.2.1.Session.Mode
11.2.2.Session.Abandon()
11.2.3.Use Session and Server.Transfer to create a wizard
11.2.4.Session.CodePage
11.2.5.Session.Contents.RemoveAll()
11.2.6.Session.CopyTo
11.2.7.Session.IsCookieless
11.2.8.Session.IsNewSession
11.2.9.Session.IsReadOnly
11.2.10.Session.Item
11.2.11.Session.Keys
11.2.12.Session.LCID
11.2.13.Session.Remove
11.2.14.Session.RemoveAll
11.2.15.Session.RemoveAt
11.2.16.Session.StaticObjects
11.2.17.Session.Timeout