JS and storing/retriving cookies from remote server

Discussion in 'JavaScript' started by adsensenewb, Jun 2, 2010.

  1. #1
    Here is what I'm looking to do.

    I have a webpage that runs through a list of items, say 1-20. When the java script is executed once, item 1 is passed through some functions. When it's run again, item 2 is passed. It uses cookies to store which item was last passed.

    What I want to be able to do, is to have multiple people from different computers be able to all share the same cookie. So 1 person runs the script 5 times, and the cookie stores this. I want this to be stored on a remote server, so that when person 2 comes on, and runs the script, it passes item 6.


    Do I need to set up some sort of software on my server to handle this? Is there a simple PHP script that can handle this? It would need to store a session for at least a day.


    Thanks in advance.
     
    adsensenewb, Jun 2, 2010 IP