Forum OpenACS Q&A: Re: Res: How to uniquely identify user's PC without using IP address?

Brian, I was reading about your problem and I have the same situacion in my job. I would like to know more in detail the solution that you used with javascript.

I will be waiting for your reply

Best Regards

Hi Alfredo,

it's really very simple. In the login page, I have the following:
<FORM method=post action="/register/user-login" name="login">
<script language="javascript" src="c:\machine\machine-name.js"></script>

The file c:\machine\machine-name.js on the client PC just contains the following line:
document.writeln('<input type="hidden" name="machine_name" value="BRIAN" />');

Then when the user logins and submits, on the next page (/register/user-login), I simply set a cookie to store the machine_name

ad_set_cookie machine_name $machine_name

I hope this is clear,
Brian