Can not send cookie - WeOnlyDo Discussion board

Can not send cookie (wodHttpDLX)

by Ace, Monday, May 09, 2005, 16:23 (6936 days ago)

Hi,

I want to send cookie to client browser, but IResponse object doesn't have something like SendCookie and its headers are read-only. What can I do?

Thanx in advance

Re: Can not send cookie

by wodSupport, Monday, May 09, 2005, 18:26 (6936 days ago) @ Ace

Ace,

Response headers should not be read-only. What programming language do you use? Did you try to call Headers.Add( Set-Cookie ) header?

You could send your code to techsupport@weonlydo.com so we can check it out and see how to implement what you need.

Regards.

Re: Can not send cookie

by Ace, Tuesday, May 10, 2005, 09:19 (6935 days ago) @ wodSupport

Hi,

Thanks for fast response, it really helped.
But, I have another question: what is the role of the third param in IWebHeaders::Add method? Can it be NULL? I'm using VC++.

Thanx in advance

Re: Can not send cookie

by wodSupport, Tuesday, May 10, 2005, 10:41 (6935 days ago) @ Ace

Ace,

3rd param is actually return value. You can set it to NULL if you're not interested in getting reference to new WebHeader instance.