I have this real strange problem with client side javascript setting cookies. I\'m developing a little 1 page demo at the moment to use cookies to store some \'preferences\'
You might have set a wrong path for the cookie.
In my case I'd set the path in the cookie to /foo because the application is normally on address http://example.org/foo.
However, during tests I'd opened the application on the default address http://localhost:3000 which allowed me to create cookies with the path /foo but not read them.
The solution was to test the application on address http://localhost:3000/foo.