Why dalauda cookies?

var star = $cookies.get(name);

 if (star==null||(star!=null&&star=='false')){
 $cookies.put(name, false, $scope.getExpDate());
}
else{
 $cookies.put(name, true,$scope.getExpDate());
}


In the import:
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.6.5/angular-cookies.min.js"></script>
 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.5/angular.min.js"></script>


After 2 times update the browser, the values from cook completely removed.
Tested for localhost. Browser chrome. Settings default, time life cook set to 1 year.
June 14th 19 at 18:29
0 answer

Find more questions by tags Angular