title: Cookies not deleting all the time angular 7
body: <p>I use ngx-cookie-service to store my token but when i click Disconnect  does not delete the cookies everytime. Sometimes its working, but sometimes it not.</p>
  
  <p>sometime i need just to reload the page to make sure cookies are deleted,sometime it works fine but it not redirect me to login page  .
  i tested it in localhost and in build same thing .
  for the browser i use chrome</p>
  
  <p>To set my token i use this :</p>
  
  <pre><code> setAuth(value, expireTime): void {
  this.cookieService.set('id_token', value, expireTime, '../');
  </code></pre>
  
  <p>}</p>
  
  <p>I am using following code to delete a cookie:</p>
  
  <pre><code>clearCookies(){this.cookieService.deleteAll('../');}
  </code></pre>
  
  <p>and this my logout function:</p>
  
  <pre><code>  logOut() {
  let path = location.pathname;
  if (path.indexOf('/panier') &gt; -1 || path.indexOf('/store') &gt; -1) {
    this.setLogout({ value: true });
  } else {
    this.disconnect().subscribe(res =&gt; {
      if (res.status == 'success') {
        this.setLogout({ value: false })
        this.clearCookies();
        this.router.navigate(['/login'])
      }
    })
  }
  </code></pre>
  
  <p>}</p>