This sample illustrates how you can filter outgoing raw data to make IIS more flexible and compatible. This filter implements a workaround for browsers that either don't understand cookies, or, for security reasons, refuse to accept cookies.
Note This filter demonstrates some of the complexities of processing raw-data using ISAPI. However, this filter does not implement full support for HTTP 1.1 chunked transfer encoding. Therefore, pages that IIS generally sends using chunked transfer encoding to, such as ASP pages, may not work properly for HTTP 1.1-compliant browsers that are not using cookies. The most convenient way of overcoming this limitation is to disable chunked transfer for IIS. This can be accomplished by setting the value of the metabase setting AspEnableChunkedEncoding to False.
This project is available in the ...\isapi\filters\cookie subdirectory of the IIS samples directory.