How can I get an updated cookie in header.php?

How can I get an updated cookie in header.php?

tech