Cookie Conversion Filter

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 chunked transfer encodes, 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 creating a DWORD registry entry named EnableChunkedEncoding, at \\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ASP\Parameters, and setting the value of the entry to 0.

This sample is provided for educational purposes only. It has not been tested in a production environment, and Microsoft® will not provide technical support for it.

This project is available in the ...\iissamples\sdk\isapi\filters\cookie subdirectory of the Internet services directory.


© 1997 by Microsoft Corporation. All rights reserved.