Page 1 of 1

Assign problem to computer

Posted: Fri May 14, 2010 8:28 am
by xionhack
Hello. Im making a help desk application that the people in my company will be able to access from their computers to say if they have any computer related problem. The thing is, it wont be possible for me to make a login and password for every user, i cannot assign the problem to the ip or to the hostname because they are not static (by assign I mean to say who the problem belongs to). I want to see if there is a way for me to assign it to the computer itself, or make a way to identify which computer is it through php, i know php is server side but how can I do what im trying to do? Please let me know if Im not being clear

Re: Assign problem to computer

Posted: Wed May 19, 2010 5:59 am
by Benjamin
Other than what's in the $_SERVER and $_ENV variables, there really isn't much more to work with. It's doubtful you could do it with Javascript either. If the requirements are that this be tied to machines, then the machines would need to have static IP addresses.

Re: Assign problem to computer

Posted: Wed May 19, 2010 1:10 pm
by Jonah Bron
...Or special software installed to update the DB every time their IP changes.

Re: Assign problem to computer

Posted: Wed May 19, 2010 1:26 pm
by AbraCadaver
Why can't you use the hostname? Of course it CAN change, but realistically, when would it change? But probably a better approach would be if they login to their computer you can get their username from $_ENV. This should be unique if you use a directory like AD.

Re: Assign problem to computer

Posted: Wed May 19, 2010 3:47 pm
by John Cartwright
The only other possibility I see is to set a cookie with a long lifespan, which contains a uniquely generated id. This, of course, can also be easily manipulated.