Magento Snippet: How to set and get cookies in Magento

Here’s how to set and get cookies in Magento:

Set:

Get:

Delete: