Recently I've been playing around with cookies and I noticed that when I create one with a value of "Hello, World!", I get "Hello":
document.cookie = "testCookie=Hello, World!;";
Interestingly enough, if I don't add a space to "Hello, World!", the cookie's value remains as I set it: ("Hello,World!")
document.cookie = "testCookie=Hello,World!;";
My only guess as to why this happens is because a comma and a space ", " ends cookies like semicolons and spaces "; " do. Is this the case, or am I doing something wrong?