Show popup once per customer

Discussion in 'Programming' started by blizzind, Aug 4, 2013.

  1. #1
    Hey guys, I'm working on a real estate landing page for a client of mine. On the landing page, within two-three minutes of each user being on the page a box is going to pop up. The box is going to have fields for a name and email. All of this info is going to get submitted to a mailing list in which the webmaster will use to send out mass emails. The problem is that once someone signs up, we no longer want the pop up box to show up. My client doesn't have a login system or anything, so I'm trying to find the best way to detect the people who have already signed up. I was thinking that a good way to do it would be to log the persons IP in a database after they submit, and have php check whether or not their IP matches anything in the database. The only problem with this would be the people that have dynamic IP address's. I'm not sure what percentage of people these days still actually have a dynamic IP, but if its low, does this method sound like it could work? I was also thinking about a cookie solution, but I feel like people clear their cookies pretty often. Any opinions on this matter would be greatly appreciated!
     
    blizzind, Aug 4, 2013 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,818
    Likes Received:
    4,536
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Just use cookies and make them last 6 months. People don't mind being asked once per device.
    Your client's target market is your bog standard member of the public who probably don't even know that cookies exist. Yes, your techie guy might clear his cookies but normal people don't.
     
    sarahk, Aug 4, 2013 IP
  3. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #3
    Use cookie as well session. and most importantly save user browser and some system info as well. From either of session/cookie you will be able to identify the user. Take example of facebook login that identifies device based on not only OS but browser as well, whatever IP you have and no matter you clean cookies and have expired sessions fb yet identifies your computer. I am not use if your question is about the pure code help or just suggestions. Though this is my suggestion.

    stay well
     
    Vooler, Aug 5, 2013 IP