There is a header Max-Age that allows to specify the expiration time of a cookie. Unfortunately Internet Explorer 6, 7, 8 and probably later do not support Max-Age and requi
What i did was to shift the time keeping to server side.You can never be sure of the time in client side, but you know your server never lies.