I want to share with you several ready to use JS functions to working with cookies from Lightning, both Aura Component and Web Components.

createCookie function gives an ability to create a cookie with a particular name, value, and time to live.
Continue reading Working with cookies from Lightning