Is current session using Cookie (VB.net) : Session Cookie « Session Cookie « ASP.Net






Is current session using Cookie (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
         Sub Page_Load()
            If Session.IsCookieless Then
               Message.Text = "The current Session does not use cookies."
            Else
               Message.Text = "The current Session uses cookies."
            End If
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>

           
       








Related examples in the same category

1.Session.IsCookieless