June 2002
Intermediate to advanced
816 pages
28h 12m
English
IsCookieless
Boolean = Session.IsCookieless
Returns a Boolean indicating whether the application is configured for cookieless Session operation.
Boolean
A Boolean variable that will receive the IsCookieless property value.
The example displays a message indicating whether cookieless sessions have been enabled for the current session:
Sub Page_Load( )
If Session.IsCookieless Then
Message.Text = "The current Session does not use cookies."
Else
Message.Text = "The current Session uses cookies."
End If
End SubThe IsCookieless property is new for ASP.NET, and is especially useful in combination with the Response.ApplyAppPathModifier method, which allows you to create absolute URLs containing the current SessionID for use with cookieless sessions.
Read now
Unlock full access