I've encountered a issue with removing cookies from my browser when logging out. It seems that I need to specify the domain in order to remove them correctly.
$cookies.remove('Name',{domain:'.test123.com'});
My goal is to automate this process by removing all cookies, but because the domain of each cookie varies, I am unsure how to retrieve it for removal.
angular.forEach(cookies, function (v, k) {
$cookies.remove(k);
});
Since the cookies automatically take on the domain and I am not setting it explicitly myself, I'm left wondering how to access the domain information for each cookie.