Ok, I tried saving a local copy of your page, and ran some more tests in IE6. Now, this could be due to my specific copy of IE6, which is a development copy (part of multiple IE versions on the same PC), but in that browser, it's simply not allowing any cookie to be set, period. To confirm if that's in fact the issue for you as well, replace the alert() message you had added in red with the below in red instead:
Code:
expandedindices=(expandedindices.length==0)? '-1c' : expandedindices //No contents expanded, indicate that with dummy '-1c' value?
document.cookie="mycookie=success;"
alert(document.cookie)
Now reload the page- do you get the value "mycookie=success;" alerted?
Bookmarks