Right on! By adding an expiry time, cookies become invalid when the expiry time has passed.
The name-value pair for the expiry portion of a cookie requires the word Expires followed by a date.
Expires