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.
var expired = new Date();
expired.setTime(expired.getTime() + (60*1000));
$cookieStore.put('user', user.username, {expires : expired });