Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have following code for Adding cookie using ISAPI filter, if i try to set domain name i.e. give "domain =" word in cookie string it does not create cookie if i give other then "domain =" then it created cookie.

cookie1.Format("%s%s%s%s%s%s","Set-Cookie: ",m_configFileRead.m_sCookieName,"=",m_configFileRead.m_ResponseCookie,"; domain=localhost","; path=/",";\r\n");
BOOL val = pCtxt->AddResponseHeaders(cookie1.GetBuffer(), 0);


Kindly let me know if any on has faced the same problem.
Regards
Anshul
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900