Hi,
I am experiencing a problem with SetCookie. SetCookie() returns true but actually not setting the cookie. Please, help me to pindown the issue. I suspect something wrong the characters in the "Value" string.
Cookie Name:-
TFSessionId
Cookie Value:-
Z1NBCMSse/7v/V6g6aBNGeeYDkbMoitRZdeV4V19kAvfjVhpBya8kBdsM1cE/I9RHDw4DbBYLaQBrE9mhGiJ9JRRM0eDJK3zTjPPr/iZWVd5jZJTHFFxe5AoYocYpdi5Gxk+uEEbXCDrMFSK5mDxV/
QSuN6LanhDkhfNYjuuZUORxLzEQu+/o0ki/K5X1P7sEgLGJyvByKZ9c2rSiREZBg==;domain=.atozqa.com
Here's the code snippet:-
public class ExtendedTaskSetCookie : CefTask
{
private string url;
private CefCookie cookie;
public bool Success { get; set; }
public ExtendedTaskSetCookie(string url, CefCookie cookie)
{
Success = false;
this.url = url;
this.cookie = new CefCookie();
this.cookie.Name = (string) cookie.Name.Clone();
this.cookie.Value = (string) cookie.Value.Clone();
}
protected override void Execute()
{
Success = CefCookieManager.Global.SetCookie(url, cookie);
Debug.WriteLine(Success);
}
}
Thanks
~Bala