PDA

View Full Version : retain login information from php?


rei
05-20-2005, 04:01 AM
i've made a bbs with php
now i would like to make access log for it.
access log would contain one's pc information (pc name ) & browser information.
browser information could be easily retrieved using java script..
how about pc information?
any clue to this?
can it be done by java script? or PHP? :confused:

delinear
05-20-2005, 09:27 AM
This was asked before here (http://www.codingforums.com/showthread.php?t=57349) and the answer is pretty much that you can't get the PC name.

Even if you could, what real value would it have? The names aren't unique and there must be millions of people around the world who just have the default name for their PC so it's useless as a means of identification. The only exception is on a closed network where you are the only one who can assign names to the PCs, but then in that situation you can probably track the users by their IP instead.

The best solution is a password/username login and then use cookies if you want to be able to leave the user logged in next time they visit.