mga_ka_php Posted April 1, 2009 Share Posted April 1, 2009 how do i track returning visitors? how will i know if the user is a returning visitor? i stored their ip address but ip address always changes. Quote Link to comment Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 I use google analytics, they have everything to track traffic. But regarding the ip address, they only change if the user changes computer; making it a fairly good way to track them. Quote Link to comment Share on other sites More sharing options...
Maq Posted April 1, 2009 Share Posted April 1, 2009 I use google analytics, they have everything to track traffic. But regarding the ip address, they only change if the user changes computer; making it a fairly good way to track them. EDIT: Read the question wrong, cookies is what you want. Quote Link to comment Share on other sites More sharing options...
Philip Posted April 1, 2009 Share Posted April 1, 2009 You can use cookies Quote Link to comment Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 $Yummy = $_COOKIE['choc_chip']; Haha... I like your sig. but back to the topic, I would only recommend using cookies if you have something that isnt really important to track, because the user can just clear cookies.. and well it goes down hill from there. Quote Link to comment Share on other sites More sharing options...
mga_ka_php Posted April 1, 2009 Author Share Posted April 1, 2009 but not all users enable their cookies? Quote Link to comment Share on other sites More sharing options...
Maq Posted April 1, 2009 Share Posted April 1, 2009 but not all users enable their cookies? And you can clear your cookies. What exactly is this for? Quote Link to comment Share on other sites More sharing options...
Philip Posted April 1, 2009 Share Posted April 1, 2009 No matter what the OP does there will be a work around, as with well, pretty much everything in the programming world it seems. Cookies - you can clear them Sessions - destroyed when the browser closes IP - Dynamic IPs etc Quote Link to comment Share on other sites More sharing options...
mga_ka_php Posted April 1, 2009 Author Share Posted April 1, 2009 what im trying to accomplish is that i have a website which some parts are restricted but users can view that restricted page 5 times.if more than 5, they need to register to access the restricted page. But how do i track the returning visitors? Currently, i used the ip address, but its not a solution because ip changes. how do i accomplish this type of setup? Quote Link to comment Share on other sites More sharing options...
mga_ka_php Posted April 1, 2009 Author Share Posted April 1, 2009 can i get the mac address? Quote Link to comment Share on other sites More sharing options...
Philip Posted April 1, 2009 Share Posted April 1, 2009 It is not possible to get the mac address. Quote Link to comment Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 what im trying to accomplish is that i have a website which some parts are restricted but users can view that restricted page 5 times.if more than 5, they need to register to access the restricted page. Based on past experience I have found it is a bad business plan to "force" users to sign up. Make them "want" to sign up by giving them extended benefits. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.