ChunkedCookieHandler Constructor (Int32)

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

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

Namespace: Microsoft.IdentityModel.Web
Assembly: Microsoft.IdentityModel (in Microsoft.IdentityModel.dll)


Dim chunkSize As Integer

Dim instance As New ChunkedCookieHandler(chunkSize)


Public Sub New ( _
    chunkSize As Integer _
public ChunkedCookieHandler (
    int chunkSize
ChunkedCookieHandler (
    int chunkSize
public ChunkedCookieHandler (
    int chunkSize
public function ChunkedCookieHandler (
    chunkSize : int


  • chunkSize
    Chunk size of the cookie.


Exception type Condition

The 'chunkSize' is less than the minimum chunk size of 1000.


Care must be taken when adjusting the chunk size. Web browsers have different limits on the size of cookies and number domain. The original Netscape specification stipulated these limits: 300 cookies total, 4096 bytes per cookie header (including metadata, not just the cookie value), and 20 cookies per domain.


Target Platforms

Windows 7, Windows Server 2008 R2, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2003 SP2 (32-bit or 64-bit)

See Also


ChunkedCookieHandler Class
ChunkedCookieHandler Members
Microsoft.IdentityModel.Web Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.