views:

22

answers:

1

Hi all,

I am setting my cookie when user click a certain link on my web page. I am using jQuery Cookie plugin developed by Klaus Hartl. To set the cookie value I do the following:

 $.cookie("lanVal", "tv", {expires: 3});

But when testing the cookie functionality, I see that IE does not save the cookie properly. All other browsers retain the value and the cookie value is load next time the page is opened. In IE, I get null when I open the page. What extra settings am I missing here?

A: 

Have you tried setting the path? eg.

$.cookie("lanVal", "tv", {path: '/', expires: 3});
David_001
yes.. I tried the path. also the domain.. with the value 'localhost' as I am running it on my PC...
Abdel Olakara