Using jquery cookie plugin, the cookie removed still appears in the browser cookie list

Hi,

I am using cookie plugin for jquery, I have done three steps: created a cookie, removed that cookie, created the same one.

Now, when I go to see the cookie page on my mozilla browser I see two cookies with the same name, and every time I run the page another identical cookie has created!
Why? Note that the function to remove cookie has retrieved true!

Can you help me to resolve this problem? Thanks!

Also remember to include the jquery plugin you can download at
https://github.com/carhartl/jquery-cookie/blob/master/src/jquery.cookie.js

there is also a readme
https://github.com/carhartl/jquery-cookie

and this is my code:

<!DOCTYPE html>
<html lang='it'>
   <head>
       <title></title>
       <meta charset='utf-8'>
       <meta name='description' content=''>
       <meta name='keywords' content=''>
       <meta name='author' content=''>
       <meta name='robots' content='all'>
       <!-- <meta http-equiv='X-UA-Compatible' content='IE=edge'> -->
       <link href='/favicon.png' rel='shortcut icon' type='image/png'>

       <script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
       <script src="js/jquery.cookie.js"></script>
       <script>
          $.cookie("test", "cookie content");
          alert($.removeCookie("test"));
          $.cookie("test", "cookie content");
       </script>
   </head>
   <body>

   </body>
</html>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.