Current Session State mode (VB.net)
<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
Session.TimeOut = 2
lblMessage.Text = lblMessage.Text _
& "Current Session State mode: " _
& Session.Mode
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Session Properties</TITLE>
</HEAD>
<form runat="server">
<asp:label
id="lblMessage"
font-size="12pt"
font-name="Tahoma"
runat="server"
/>
</form>
</BODY>
</HTML>
Related examples in the same category