<%@ Page EnableSessionState = "false" %>
<script runat="server" >
Public Sub Page_Load
Session("MySession") = "My Session Value"
Response.Write( Session("MySession") )
End Sub
</script>
<HTML>
<form id="Form1" runat="server">
When EnableSessionState = "false" Session State is not accessible - this page generates an exception.
</form>
</body>
</html>
|