I create the cookie in jQuery. I can verify it in Firefox. But when I try to print the cookie or assign into another value I cant get it. I also use sessions. And I started the session in PHP. My code to print or assign the cookie value is shown below
echo $_COOKIE['a'];
for assigning the value
$b=$_COOKIE['a'];
The cookie created using jQuery is
$.cookie("a",$(this).val());
Where did I make a mistake? How can I get the cookie value?