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?
Set cookies attributes at config level to all cookies (using
moment.js
to set expiration date).