$.removeCookie can not remove cookie?

Total Post:183

 1204  View(s)
Rate this:
i'm using https://github.com/carhartl/jquery-cookie for manage my cookie
when i call $.removeCookie("Kamlakar"); it returns true but when i do $.removeCookie("Kamlakar"); Value is still there

  1. Post:194

    Re: $.removeCookie can not remove cookie?

    basically the link gives a way to delete the cookie by setting its time to a negative time, so when it expires the cookie is gone. ( in Javascript ) and here is a way to do it in Jquery style.

        //setting the cookie
        $.cookie({ 'myCookie': 'myValue' });
        // Get a cookie
        // Delete a cookie
        $.cookie('myCookie', null);

      Modified On Apr-05-2018 11:08:45 PM