IReadOnlySessionState Interface

 

Specifies that the target HTTP handler requires only read access to session-state values. This is a marker interface and has no methods.

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

Public Interface IReadOnlySessionState
	Inherits IRequiresSessionState

Implement the IReadOnlySessionState interface in your custom handler to identify that your handler requires only read access to session-state values.

The following code example examines the current HTTP Handler property to determine whether it requires only read access to session-state values.

Dim readOnlySession As Boolean = False

If TypeOf (Context.Handler) Is IReadOnlySessionState Then
  readOnlySession = True
End If

.NET Framework
Available since 1.1
Return to top
Show: