ChunkedCookieHandlerElement::ChunkSize Property

.NET Framework (current version)
 

Gets or sets the chunk size for the handler.

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

public:
[ConfigurationPropertyAttribute("chunkSize", IsRequired = false, 
	DefaultValue = 2000)]
[IntegerValidatorAttribute(MinValue = 1000)]
property int ChunkSize {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The chunk size, in bytes. The default is ChunkedCookieHandler::DefaultChunkSize. Do not set a value below the minimum chunk size defined by MinimumChunkSize.

You must be careful when adjusting the chunk size. Web browsers have different limits on the size of cookies and the number of cookies allowable in total and per domain. For example, the original Netscape specification specified these limits: 300 cookies total, 4096 bytes per cookie header (including metadata, not just the cookie value), and 20 cookies per domain. For more information, see ChunkedCookieHandler.

Represents the chunkSize attribute of the <chunkedCookieHandler> element.

.NET Framework
Available since 4.5
Return to top
Show: