Hi I am developing angularjs application. I am using cookies in my application. On logout i want to remove all the cookies i set. I am using $cookieStore to set cookie value. Is there any way to delete all cookies? I have used below function.
$scope.logout=function()
{
debugger;
angular.forEach($cookies, function (v, k) {
$cookieStore.remove(k);
});
}
I am not sure what is $cookies in the above code? When i use above code i have below error also. $cookies is not defined. May i know is there any way to delete all cookies in one shot instead of removing one by one? Any help would be appreciated. Thank you.