Many of cookies store data with imbedded escape sequences to encode semi-colons and other characters so they won't be mistaken for delimiters at the end of a data string
If your script relies on JavaScript cookies to store and persist information, it's a good idea to always make sure the user's browser has cookies enabled first. This tutorial shows you how to perform this detection.