ChunkedCookieHandler Class
Represents a cookie handler that writes cookie data so that cookies never exceed a set size.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
System.IdentityModel.Services::CookieHandler
System.IdentityModel.Services::ChunkedCookieHandler
| Name | Description | |
|---|---|---|
![]() | ChunkedCookieHandler() | Initializes a new instance of the ChunkedCookieHandler class that uses the default chunk size. |
![]() | ChunkedCookieHandler(Int32) | Initializes a new instance of the ChunkedCookieHandler class that uses a specified chunk size. |
| Name | Description | |
|---|---|---|
![]() | ChunkSize | Gets the chunk size used by the current instance. |
![]() | Domain | Gets or sets the domain used for cookies.(Inherited from CookieHandler.) |
![]() | HideFromClientScript | Gets or sets a value that indicates whether the cookie should be hidden from client script.(Inherited from CookieHandler.) |
![]() | Name | Gets or sets the base name for cookies written by the handler.(Inherited from CookieHandler.) |
![]() | Path | Gets or sets the virtual path for cookies written by the handler.(Inherited from CookieHandler.) |
![]() | PersistentSessionLifetime | The lifetime of persistent sessions. If zero, transient sessions are always used.(Inherited from CookieHandler.) |
![]() | RequireSsl | Gets or sets a value that specifies whether the cookie should be used only with SSL.(Inherited from CookieHandler.) |
| Name | Description | |
|---|---|---|
![]() | Delete() | Deletes the cookie associated with the current request that has the default name, domain, and path.(Inherited from CookieHandler.) |
![]() | Delete(HttpContext^) | Deletes the cookie associated with the current request that has the default name, domain, and path.(Inherited from CookieHandler.) |
![]() | Delete(String^) | Deletes the cookie associated with the current request that has the specified name and the default domain and path. (Inherited from CookieHandler.) |
![]() | Delete(String^, HttpContext^) | Deletes the cookie associated with the specified request that has the specified name and the default domain and path.(Inherited from CookieHandler.) |
![]() | Delete(String^, String^, String^, HttpContext^) | Deletes the cookie associated with the specified request that has the specified name, path, and domain. (Inherited from CookieHandler.) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MatchCookiePath(Uri^, Uri^) | If the target domain is within the cookie domain and the target path is within the cookie path, match the casing of the cookie path portion.(Inherited from CookieHandler.) |
![]() | Read() | Reads the cookie associated with the current request that has the default name.(Inherited from CookieHandler.) |
![]() | Read(HttpContext^) | Reads the cookie associated with the current request that has the default name, domain, and path.(Inherited from CookieHandler.) |
![]() | Read(String^) | Reads the cookie associated with the current request that has the specified name. (Inherited from CookieHandler.) |
![]() | Read(String^, HttpContext^) | Reads the cookie associated with the specified request that has the specified name and the default domain and path. (Inherited from CookieHandler.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Write(array<Byte>^, Boolean, DateTime) | Writes a cookie associated with the current request that has the specified value, persistence, and expiration time.(Inherited from CookieHandler.) |
![]() | Write(array<Byte>^, String^, DateTime) | Writes a cookie associated with the current request that has the specified name, value, and expiration time.(Inherited from CookieHandler.) |
![]() | Write(array<Byte>^, String^, DateTime, HttpContext^) | Writes a cookie associated with the specified request that has the specified name, value, and expiration time.(Inherited from CookieHandler.) |
![]() | Write(array<Byte>^, String^, String^, String^, DateTime, Boolean, Boolean, HttpContext^) | Writes a cookie associated with the specified request that has the specified name, value, domain, path, expiration time, and visibility.(Inherited from CookieHandler.) |
| Name | Description | |
|---|---|---|
![]() ![]() | DefaultChunkSize | The default chunk size of 2000 characters. |
![]() ![]() | MinimumChunkSize | The minimum chunk size of 1000 characters. |
The ChunkedCookieHandler class presents the cookie as a logical entity, so that, in the case of cookies with a size that exceeds a specified threshold (the chunk size), a single call to the Write method breaks the data into a series of actual client-side cookies, none of which exceeds the chunk size.
Cookie names are constructed based on the name parameter to the Write, Read, or Delete methods. The cookie names are constructed by appending a number to the base name: name, name1, name2, and so on.
Available since 4.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



