Current Session State mode (VB.net) : Session Mode « Session Cookie « ASP.Net






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

1.Get current Session state mode (VB.net)
2.Session Abandon() (VB.net)
3.Current session mode (VB.net)