Change site style→

style-1 style-2
  1. nazenani
  2. >
  3. >
  4. >
  5. >
  6. Cookie troubles.

Cookie troubles.

Cookie setting deviates by the page transition.

Do you use cookie.js?

It’s very useful plugin.

But sometimes cookie setting deviates by the page transition.
Once I set cookie below.

$.cookie('key', 'value');

If cookie setting deviates by the page transition, change it to below.

$.cookie('key’,'value',{path:’/'});

Add path.

Can’t delete Cookie!?

When deteting cookie, almost people code below.

$.removeCookie("key");

If you can’t detlet cookie with above, try next 2 method.

Try them.

comment

Fields with * is required.

go to related tags archive?