Hey guys and gals,
Does anybody know of a way to check a $_COOKIE[]'s parametres so we know when it is about to expire.
I need to check the status of a cookie every so often, and then ask them to refresh some details, which in turn will refresh the cookie, and re-set the expiry time if it is within 10 minutes of expiry.
EG:
if(getTimeLeft($_COOKIE['someVar']) < minToSecs(10)){
//Refresh the $_COOKIE['someVar']
}
I suppose the question is, does anyone know of a feature similar to getTimeLeft() in above example? Or if not, how should I start writing it??
Cheers people,
Si