1

I am saving cookies using react-cookie, while doing that I set few optins live maxAge & domain.

Example:

cookie.save('xxx', 'data', { path: '/', maxAge: 0000, domain: '.example.com' })

Now while removing I have to use same paramenter in options to remove cookies, otherwise due to domain parameter cookies wont get removed!

Example:

cookie.remove('name', { path: '/', domain: '.example.com' })

But this wont remove a cookie saved with 'beta.example.com' or 'example.com'

I want to remove all cookies for my domain irrespective what sub domain is set. I am unable to found a solution for this so far :(

Link to package: react-cookie

demonofthemist
  • 4,081
  • 4
  • 26
  • 45

1 Answers1

-1

your domain may start with "http" or "https". please use full address if not removed.

vimuth
  • 5,064
  • 33
  • 79
  • 116
vipin joshi
  • 47
  • 1
  • 9