Cookies

Martin Skott martin.skott at propylon.com
Fri Mar 16 06:18:08 EST 2001


"Ken Seehof" <kens at sightreader.com> writes:
> Alternate question:
> 
> Is there a technique common to both javascript and python that will
> obtain a unique identifier for a computer (e.g. IP address).  It must
> not be browser specific.

The other guys seems to have answered your first question so I will
try to answer this.
You should first of all be aware that there is no common unique
identifier for a computer available from the net today[1]. IP
addresses as you suggest aren't useable because of of multiple users
being placed behind the same firewall/proxy server whos IP all their
requests originate from. If your application is for an intranet only
without firewalls or proxy servers then this might be different but
generally it fits. 
A far better solution is to generate something unique for the user to
carry around. This is easily done using something like the choice
function of the python random interface. I know nothing about
Javascript so how you would come around this thing using it I don't
know but the fact that using IPs is bad is universal.

[1]Why would somebody use cookies if there was?
-- 
Martin Skott
Software Developer
Propylon - Enabling Universal Mobility
http://www.propylon.com
Tel: +353 096 37245
Mobile: +353 087 9680370



More information about the Python-list mailing list