Session TimeOut (VB.net) : Timeout « Session Cookie « ASP.Net






Session TimeOut (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 = "Without activity, your session " _
        & "will expire in " & Session.TimeOut _
        & " minutes.<BR>"
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 timeout value (VB.net)