Setting cookies in XML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rjoseph
    New Member
    • Sep 2007
    • 36

    Setting cookies in XML?

    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.cookie s("prefs")("mak e")="Aston Martin"
    response.cookie s("prefs")("mod el")="Vanquis h"
    response.cookie s("prefs")("pri ce")="£40000"
    For Each cookie in Response.Cookie s
    Response.Cookie s(cookie).Expir es = 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
Working...