CInternetSession::GetCookieLength

Call this member function to get the length of the cookie stored in the buffer.

static DWORD GetCookieLength( 
   LPCTSTR pstrUrl, 
   LPCTSTR pstrCookieName  
);

Parameters

  • pstrUrl
    A pointer to a string containing the URL

  • pstrCookieName
    A pointer to a string containing the name of the cookie.

Return Value

A DWORD value indicating the length of the cookie, stored in the buffer. Zero if no cookie with the name indicated by pstrCookieName exists.

Remarks

This value is used by GetCookie.

Requirements

Header: afxinet.h

See Also

Reference

CInternetSession Class

Hierarchy Chart

CInternetSession::SetCookie

Other Resources

CInternetSession Members