IHttpSessionState.IsCookieless Property

 

Gets a value indicating whether the session ID is embedded in the URL or stored in an HTTP cookie.

Namespace:   System.Web.SessionState
Assembly:  System.Web (in System.Web.dll)

ReadOnly Property IsCookieless As Boolean

Property Value

Type: System.Boolean

true if the session is embedded in the URL; otherwise, false.

For information on cookieless sessions, see Session Identifiers.

The following code example implements the IsCookieless property of the IHttpSessionState interface.

Public ReadOnly Property IsCookieless As Boolean Implements IHttpSessionState.IsCookieLess    
  Get
    Return CookieMode = HttpCookieMode.UseUri
  End Get
End Property

.NET Framework
Available since 2.0
Return to top
Show: