1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

basic cookie question

Discussion in 'Programming' started by jmueller0823, Sep 27, 2005.

  1. #1
    We're displaying a popup every thirty days via a cookie.

    The particular js script we're using is folder-specific.

    For example:
    1. Visitor displays the home page-- the popup launches.
    2. Visitor displays the home page again -- popup will not launch again for 30 days.

    3. Visitor displays a page located in a sub-folder-- the popup launches.
    4. Visitor displays a page located in a sub-folder again--popup will not launch again for 30 days.

    and so on...

    QUESTION
    Is the above "default" behavior for a cookie?

    WHAT WE WANT TO DO IS THIS
    Regardless of what page a visitor displays, we want the the popup to ONLY
    launch a total of one time every thirty days.

    Is that possible? Thanks.
     
    jmueller0823, Sep 27, 2005 IP
  2. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    More Than One Cookie maybe?
     
    MiamiHost, Oct 3, 2005 IP
  3. flash_f

    flash_f Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    More Than One Cookie maybe? Yes, as for me
     
    flash_f, Dec 9, 2005 IP
  4. Sham

    Sham Peon

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm surely you only need to issue one cookie then?

    Whenever a user accesses a page in any folder, check that one cookie for the date, and if the date is now, show the popup, and set the cookie's date to now+30 days?
     
    Sham, Dec 10, 2005 IP