/// <summary> /// Set a new cookie. If day expires is 0, it will be a session cookie. Set it to minus value in order to remove. /// </summary> /// <param name="cookie">Object representing cookie</param> public static async Task SetAsync(Interfaces.Cookie.Cookie cookie) { await InvokeAsync <object>("LMTCookiesAdd", cookie.Key, cookie.Value, cookie.Expires, cookie.Path); //Set null to force getter to reinitialize list of cookies _dict = null; }
/// <summary> /// Set a new cookie. If day expires is 0, it will be a session cookie. Set it to minus value in order to remove. /// </summary> /// <param name="cookie">Object representing cookie</param> public static void Set(Interfaces.Cookie.Cookie cookie) { Invoke <object>("LMTCookiesAdd", cookie.Key, cookie.Value, cookie.Expires, cookie.Path); //Set null to force getter to reinitialize list of cookies _dict = null; }