Hello,

Just wondering if you can store a XML file into a Cookie?

I have the following code:
Code:
function setCookie(c_name,value,exdays)
 {
 var exdate=new Date();
 exdate.setDate(exdate.getDate() + exdays);
 var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
 document.cookie=c_name + "=" + c_value;
 }
just wondering if you can store a XML file into a cookie so that I can load the whole xml file from the cookie rather than loading the XML file again?

Anyone able to help?