Jump to content

writing multiple values to a cookie


Cissi

Recommended Posts

I want to save links to a cookie. So far I can save one link by:

 

var value=document.getElementById("link1").href;

document.cookie=cookiename + "=" + escape(value);

 

If I want to save several links, do I have to create one cookie per link or can I save them all in the same cookie? If I can use only one cookie, how do I read the values from it?

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/43849-writing-multiple-values-to-a-cookie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.