Used AngularJS v1.3.15 Cookies are set all right, but used html5mod in route

$locationProvider.html5Mode({ enabled: true, requireBase: false }); 

And it turns out Cookies signed up for / app / if moved to another page, for example / app / 1, and then we need to remove it, then we will only remove it from the / app / 1 page

How to delete cookies from all pages?

Tried through $ cookieStore

  $cookieStore.remove('user_id'); delete $cookieStore; $cookieStore.removeAll(); 

Not one of these options works.

here you can see how the cookies are recorded. enter image description here $ cookies.user_id = '24' - this is how variables were recorded in $ cookies

  • What is $ cookieStore ? Where did the suggestion about cookies come from for / app / if you moved to another page, for example / app / 1, and then we need to delete it, then we will remove it only from the / app / 1 page ? How are cookies written? where do they really lie? - Grundy
  • clip2net.com/s/3Fy41NJ here you can see how the cookies are recorded. $ cookies.user_id = '24' - this is how variables were recorded in $ cookies - Anwin
  • What is this link? if it relates to a question, move it to a question. What with the answers to the questions in the comments? - Grundy
  • in question you have an unknown $cookieStore , in the comments unknown $cookies . Determine what exactly you are using, how you are using, and give a link to the help of the libraries used - Grundy

0