Edit

Kongsi melalui


ChunkedCookieHandler Constructors

Definition

Initializes a new instance of the ChunkedCookieHandler class.

Overloads

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.

ChunkedCookieHandler()

Initializes a new instance of the ChunkedCookieHandler class that uses the default chunk size.

public:
 ChunkedCookieHandler();
public ChunkedCookieHandler ();
Public Sub New ()

Remarks

The default chunk size is specified by DefaultChunkSize.

Applies to

ChunkedCookieHandler(Int32)

Initializes a new instance of the ChunkedCookieHandler class that uses a specified chunk size.

public:
 ChunkedCookieHandler(int chunkSize);
public ChunkedCookieHandler (int chunkSize);
new System.IdentityModel.Services.ChunkedCookieHandler : int -> System.IdentityModel.Services.ChunkedCookieHandler
Public Sub New (chunkSize As Integer)

Parameters

chunkSize
Int32

The chunk size that will be used to write cookies.

Exceptions

chunkSize' is less than the minimum chunk size of 1000 (MinimumChunkSize).

Remarks

You must be careful when adjusting the chunk size. Web browsers have different limits on the size of cookies and the number of cookies that are allowed 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.

Applies to