SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need simple cookie help

    I need simple help. I hardly know anything about java script and am having a lot of trouble with something that should be simple.

    What I need to do is put a cookie on someone's browser. When they visit page A, then a cookie is placed on their browser.

    Then on another web page B if the person visting has the cookie on their browser I want to redirect to another page.

    Please help me with this. Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Location
    Rosario, Argentina
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    usually cookies work for the same site, page A and B are on the same site or a different domain?

  3. #3
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have same problem, (same site) I need a craigslist style cookie that will resend my user to the geo page location that relates to them the next time they visit ie. Los Angeles. To save them a click and personalize the experiance.

    Basically just like craigslist does. I'm happy to pay if nessessesary


  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Here's some code for handling cookies
    http://www.quirksmode.org/js/cookies.html
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •