SessionAuthenticationModule.ContainsSessionTokenCookie Method (HttpCookieCollection)

.NET Framework (current version)
 

Determines whether a session cookie is in the specified cookie collection.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public bool ContainsSessionTokenCookie(
	HttpCookieCollection httpCookieCollection
)

Parameters

httpCookieCollection
Type: System.Web.HttpCookieCollection

The collection of cookies in which to search.

Return Value

Type: System.Boolean

true if a session cookie is found; otherwise, false.

Exception Condition
ArgumentNullException

httpCookieCollection is null

.NET Framework
Available since 4.5
Return to top
Show: