<%@ Page EnableSessionState = "ReadOnly" %>
<script runat="server" >
Public Sub Page_Load
Response.Write( Session("MySession") )
Session("MySession") = "My Session Value"
End Sub
</script>
<HTML>
<form id="Form1" runat="server">
A session state value is set, but is not persisted when EnableSessionState = "ReadOnly".
</form>
</body>
</html>
|