First, set a cookie:
jQuery.cookie('monster', 'big', { path : '/sesame/'});
Next, try to read it:
jQuery.cookie('monster');
Firefox tells me that the cookie has indeed been set. The value is big
and the path is /sesame/
. And yet when I tried to read the cookie it wouldn't work.
Alternate version of the question: How do I specify the path when reading a cookie?
As an experiment I used the following syntax but it sets a cookie rather than read one.
$.cookie('cookie_name', { path: '/path/' });