Cookies and Winsock are unrelated! Check out this link to see how HTTP and cookies work: http://www.w3.org/Protocols/