I've researched and I've found how to delete a cookie by name, however, I am unsure how/or if its possible to delete a cookie which is older than a specific time period i.e. delete cookie if its 24hours old. So far I have this:
var delete_cookie = function(name) {
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
};
delete_cookie('roundcube_sessauth');
I would assume (again if possible) I would need to set variable to actual time and if the cookie time is 24h older than real time, delete?
Thanks in advance.