Session.IsCookieless : Session Cookie « Session Cookie « ASP.Net






Session.IsCookieless

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    If Session.IsCookieless Then
        lblMessage.Text = lblMessage.Text & "Cookies " _
            & "are not being used to store " _
            & "session data.<BR>"
    Else
        lblMessage.Text = lblMessage.Text & "Cookies " _
            & "are being used to store " _
            & "session data.<BR>"
    End if
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.Is current session using Cookie (VB.net)