Setting cookies in XML

wxdqz

New Member
Hi Guys

I think I have a really easy one for you.

I am currently using the following script to store information in cookies:

-------------SCRIPT--------------
<%
response.cookies("prefs")("make")="Aston Martin"
response.cookies("prefs")("model")="Vanquish"
response.cookies("prefs")("price")="?0000"
For Each cookie in Response.Cookies
Response.Cookies(cookie).Expires = now()+365
Next
%>
-------------END-------------

This works just fine in my ASP pages but now I need to incorporate the same method into some xml pages and therefore believe I need to use Javascript. I have spent hours reading numerous (how to set cookies in Javascript) articles and have not found a simple example that matches what I want to achieve above.

Can anyone please put me out of my misery and provide me with a simple piece of code that I can use in my xml page to achieve the above?

If so, then that would be great.

I look forward to hearing from you

Rod from the UK
 
Back
Top