Jaa


ChunkingCookieManager Class

 

This handles cookies that are limited by per cookie length. It breaks down long cookies for responses, and reassembles them from requests.

Namespace:   Microsoft.Owin.Infrastructure
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Infrastructure.ChunkingCookieManager

Syntax

public class ChunkingCookieManager : ICookieManager
public ref class ChunkingCookieManager : ICookieManager
type ChunkingCookieManager = 
    class
        interface ICookieManager
    end
Public Class ChunkingCookieManager
    Implements ICookieManager

Constructors

Name Description
System_CAPS_pubmethod ChunkingCookieManager()

Properties

Name Description
System_CAPS_pubproperty ChunkSize

The maximum size of cookie to send back to the client. If a cookie exceeds this size it will be broken down into multiple cookies. Set this value to null to disable this behavior. The default is 4090 characters, which is supported by all common browsers. Note that browsers may also have limits on the total size of all cookies per domain, and on the number of cookies per domain.

System_CAPS_pubproperty ThrowForPartialCookies

Throw if not all chunks of a cookie are available on a request for re-assembly.

Methods

Name Description
System_CAPS_pubmethod AppendResponseCookie(IOwinContext, String, String, CookieOptions)

Appends a new response cookie to the Set-Cookie header. If the cookie is larger than the given size limit then it will be broken down into multiple cookies as follows: Set-Cookie: CookieName=chunks:3; path=/ Set-Cookie: CookieNameC1=Segment1; path=/ Set-Cookie: CookieNameC2=Segment2; path=/ Set-Cookie: CookieNameC3=Segment3; path=/

System_CAPS_pubmethod DeleteCookie(IOwinContext, String, CookieOptions)

Deletes the cookie with the given key by setting an expired state. If a matching chunked cookie exists on the request, delete each chunk.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetRequestCookie(IOwinContext, String)

Get the reassembled cookie. Non chunked cookies are returned normally. Cookies with missing chunks just have their "chunks:XX" header returned.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin.Infrastructure Namespace

Return to top