0

I am working on angular 7, And using ngx-cookie-service I had create two different path.

this.cookieService.delete('_logdetails', "/admin", "abc.com");
this.cookieService.delete('_logdetails_home');

Root path cookie is remove but child cookies is not remove.

It's working on localhost but while production it's not working.

Pavan Jadda
  • 4,306
  • 9
  • 47
  • 79
Deepak Jha
  • 359
  • 2
  • 10

1 Answers1

0

The same issue happened to me...

I have changed the name while set the cookie data.

then I have changed this.cookieService.delete('test');

or You can use this.cookieService.deleteAll();

Parth Raval
  • 4,097
  • 3
  • 23
  • 36