title: How to redirect to login page after cookie expires in Angular JS?
body: <p>I have the following piece of code where the user is stored in the cookie. The expiry time for the cookie is also set. The user page is still showing even after the cookie has expired. </p>
  
  <pre><code>             var expired = new Date();
               expired.setTime(expired.getTime() + (60*1000));
               $cookieStore.put('user', user.username, {expires : expired });
  </code></pre>