Session lock (VB.net) : Session Lock « Session Cookie « ASP.Net






Session lock (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
         Sub Page_Load()
            Session("foo") = "foo"
            SyncLock Session.SyncRoot
              Message.Text = "in lock."
            End SyncLock
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>

           
       








Related examples in the same category