Restore cookie expiration utility functions