In my application I am using angularJS 1.3, when I using $cookies
to store some values I need to set 1 min expiration time of cookie. The angularJs 1.3 $cookies
service has not put method to supply expiration time.
this is the code I tried so far.
var x = new Date();
x.setMinutes(x.getMinutes() + 1);
$cookies['showStartUpScreen'] = value + ';expires=' + x.toGMTString();