Hi there, thanks for the post, it has really helped me a lot. I have been asked now to move forward by using $jquery .cookie plugin and serialize id values and store in a single cookie togather. And then deserialize the cookie after reading it ....however as far as I have implemented the code the scenario is as follows .....there is a page frame_products, used to load all products, the link add to fav is here, when the user presses the add to favorites button , a single id of the current product is obtained through $GET variable. Which then has to be stored somwhere either an array or a cookie itself....if a single cookie is to be created , the values should be stored in an array. However the array if created in a file, cookie.js....this script is added to frameproducts everytime the page loads , hence the array is recreated and all values lost. whatever be the case...either I declare it within frame_products or include it in an external script....the array will be recreated...and the values will be lost...my question is ...Is there a work around to do this in some way...how can arrays be made global and static...if tried using workarounds like (typeof==='undefined) myfav= new Array(5);
Or window.myFav= new Array(5); but to no avail.
Second question , how to serialize id's into a string and deserialize them after reading and store into a single cookie
Also if its possible to do so with multiple values like both id and link...I would like to know both solutions.
Finally Thanx again,
You hav been very helpful..