|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
Cookiesare used for tracking data settings, or data for a particular Web site. The cookies are saved on the client device, and when the browser requests a page, it sends the data settings for that page along with the request. The browser can only send the data back to the server that originally created them; therefore, cookies provide an additional layer of security while maintaining user-specific data. Cookies can be temporary or persistent.
The Windows CE Internet functions have a persistent cookie database for this purpose. The Windows CE Internet cookie functions are used to set cookies into and access cookies from the cookie database. For more information, see HTTP Cookies.
The Windows CE Internet functions InternetSetCookieand InternetGetCookiecan be used to manage cookies.
Unlike most Windows CE Internet functions, the cookie functions do not require a call to InternetOpen. Cookies that have an expiration date, persistent cookies, are stored in the Windows\Cookies directory. Cookies that do not have an expiration date, session cookies, are stored in memory and are available only to the process in which they were created.
InternetGetCookiereturns the cookies for the specified URL, and all its parent URLs. InternetGetCookiechecks persistent storage for cookies, and searches memory for any cookies that do not have an expiration date, since these cookies are not written to any files.
InternetSetCookieis used to set a cookie on the specified URL. InternetSetCookiecan create both persistent and session cookies.
Last updated on Friday, April 02, 2004