People,
I found that the jQuery cookie plugin sets the domain to ".com" if the cookie I set is a session file.
Here is the code:
jQuery.cookie("currentTab", selectedTab );
If I view cookies using the IE Developer Tool, it shows the domain as ".com".
If I ask this path:
jQuery.cookie("currentTab", selectedTab, { expires: 1} );
... then it has “www.sitename.com” as the domain.
Is there any trick I'm missing, or have I found a mistake?
Thanks.
source share