I am setting expiration date of a the cookie in the following manner:
var dt = new Date();
dt.setMinutes(dt.getMinutes() + 30);
$cookieStore.put("loggedin", true, { expires: dt })
The cookie is being created but the expiration of it shows as "When the browsing session ends". Wth?