Re: Duplicating COOKIES in WODHTTP - WeOnlyDo Discussion board

Re: Duplicating COOKIES in WODHTTP (General questions)

by joshu, Thursday, October 13, 2011, 01:10 (4789 days ago) @ wodDamir

I don't see how to get the exact location of the cookie. I wish you could just do like
Cookie.remove cool
That doesn't work. Your site says you can remove by the value name but that doesn't work

Can you show an example of how to remove with the example i posted earlier.

Joshu,

I'm not really sure what to show exactly. Remove method accepts cookie index, and removes it from the collection. You can simply iterate through your Cookies collection, and in case there is double remove it using Remove method.

The other way would be to set Cookie value instead of removing/adding a new cookie in collection. You can do that simply by setting it's Value property (http://www.weonlydo.com/HttpDLX/Help/wodHttpDLX-HttpCookie-Value.html).

Can you please try that?

Regards,
Damba


Complete thread: