BCJTI / ng2-cookies

Simple library to deal with cookies in Angular2
64 stars 31 forks source link

I am trying to delete all cookies but it returning me same object #52

Open ashwinirajput opened 7 years ago

ashwinirajput commented 7 years ago

Cookie.deleteAll() not working

Bigous commented 7 years ago

Just for an insight - you are trying to use Cookie.deleteAll() to delete cookies created with ng2-cookies Cookie class or you are trying to do that to delete cookies created without the ng2-cookies library?

Could you try to use UnmanagedCookie.deleteAll() to see if it works for you?

ashwinirajput commented 7 years ago

Hi, I am importing ng2-cookies then store cokies but when i want to clear it. It doesn't get cleared.

Regards Ashwini

On Sep 4, 2017 6:17 PM, "Richard Natal" notifications@github.com wrote:

Just for an insight - you are trying to use Cookie.deleteAll() to delete cookies created with ng2-cookies Cookie class or you are trying to do that to delete cookies created without the ng2-cookies library?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BCJTI/ng2-cookies/issues/52#issuecomment-326954846, or mute the thread https://github.com/notifications/unsubscribe-auth/AXgOBYs53Sn8PSAY0-tjPU1wueu6PPEeks5se_FHgaJpZM4PJzVH .

Bigous commented 7 years ago

Could you try with UnmanagedCookie.deleteAll()?

johns24 commented 6 years ago

I am facing the same issue. I tried with UnmanagedCookie.deleteAll() still the same. Someone, please help me here.

Bigous commented 6 years ago

@johns24 Please post a snipet and the description of yout browser version, so, etc... And look at the cookies permissions and if you are trying to delete cookies from a different domain...