I have a web app built on Wordpress that stores a cookie using JavaScript:
document.cookie = "storedcookie="+cookie+"; path=/";