#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Location
    an hour away from L.A., California
    Posts
    132
    Rep Power
    13

    Set a cookie using javascript?


    I'm wondering if it is possible to set a cookie, using javascript, for a site whose host doesn't support either php or asp? I only know how to do it using php.

    And, if it IS possible, then how would I check to see if the cookie exists, using javascript?

    If cookie exists then redirect to page2.htm.
    Else, redirect to page1.htm (where the cookie would be set)

    Thanks!
  2. #2
  3. <blah>
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Melbourne, Australia
    Posts
    483
    Rep Power
    34
    Hi,

    what you need can be found at http://www.dithered.com

IMN logo majestic logo threadwatch logo seochat tools logo