Home > Software engineering >  Chtmlview print preview, cookies to be lost.
Chtmlview print preview, cookies to be lost.

Time:10-07

I integrated in the MFC chtmlview opened the web page, use InternetSetCookie function, set the cookie, web page can normal open, but in a web page using the right-click menu - the print preview, cookie is empty,
I use this way to set a cookie.
For ()
{
InternetSetCookie (strUrl, strCookieName strCookieValue);
}

1, I don't know whether my this way of setting cookies mistake?

2, when the print preview, chtmlview have corresponding provide the corresponding interface, can set the cookie value,

CodePudding user response:

Estimate the building Lord have to learn to caught or browser software used to own a debugging tool,

CodePudding user response:

I use the caught tools, WSExPlorer, open the web page, there is a cookie, but right in the open pages print preview, caught without a cookie,

  • Related