mrmbarnes — 2011-10-06T05:29:19-04:00 — #1
Does anyone know of a way to identify a computer with php?
I have setup up some code that grabs the IP address of someone and puts it in my database so when they return we can pass some info back to them.
The issue I have come across is that if there is more than one person on that IP address everyone gets the last saved info.
Therefore I need to identify each computer.
Thanks for any help.
tangoforce — 2011-10-06T06:31:30-04:00 — #2
Using cookies is the only real way to attempt to track a user but that isn't fool proof as the user can reject cookies.
You might be interested in researching the Etag however, I read an article about this recently that some company had been using them to track visitors which had blocked cookies and there was basically nothing they could do to prevent the use of ETags. I'm unsure of how it works myself but that may be the way forward for you.
mrmbarnes — 2011-10-06T19:01:45-04:00 — #3
Thanks for that. I have had a look into that but don't think that will quite work.
I was thinking along the lines of grabbing their HDD ID or something but not too sure if that can be done from the research I have done so far.
All I need to do is identify if that computer has been to the website before and then give them information specific to that computer.
I don't want to muck around with cookies if I don't have to.
Any other ideas?
thereddevil — 2011-10-06T19:10:03-04:00 — #4
What you want to do can not be done with PHP, or any server side language for that matter. The closes you would come is Java applets.
Though, a computers "hardware id" is normally only used to tie a computer to a set license. Not for keeping track if a computer has visited a website.
mrmbarnes — 2011-10-06T19:27:54-04:00 — #5
Thanks. I thought that might be the case so cookies it is by the looks of it.