title: How do I set a cookie?
body: <p>How can I set a cookie and retrieve the cookie value in Drupal 8?</p>
  
  <p>In plain PHP, I could use <code>setcookie('country', $country, time() + (86400 * 30), "/");</code>, but I think there is a better way, for Drupal 8.</p>