I have used $cookieStore in angularjs with expiration time but expiration time is not working.
Look at this code...
var today = new Date();
var expiresValue = new Date(today);
//Set 'expires' option in (365 x 24 x 60 x 60) = 31536000 seconds = 1 year
expiresValue.setSeconds(today.getSeconds() + 31536000);
// Setting a cookie
$cookieStore.put('STYPE', response.data.type, {'expires' : expiresValue});
How can i set expiration time in angularjs.