With 1.4 version of AngularJS, is it possible to create persistent cookies with $cookies? <p>With 1.4 version of AngularJS, is it possible to create persistent cookies with <code>$cookies</code>? </p> <p>I want data to be stored once I login, for 7 days say. In version 1.3.X, it is not possible to set Expiration date even. But with 1.4, they have deprecated <code>$cookieStore</code> and set an option in <code>$cookies</code> for expiration date. </p> <p>I want to know whether this one creates cookies for desired longer periods rather than I close the browser and everything is gone. </p>