Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: getting a clearly identifying number for a user who is not logged in  (Read 2441 times)

0 Members and 1 Guest are viewing this topic.

mcdezibel

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

I'm searching for a number that clearly identifies a user who is not logged in on coppermines gallery.

In coppermin.inc.php line 44 found that $this->client_id maybe such a number ...

line 44:  // A hash that's a little specific to the client's configuration
line 45: $this->client_id = md5($_SERVER['HTTP_USER_AGENT'].$_SERVER['SERVER_PROTOCOL'].$CONFIG['site_url']);


I also found that when the users browser is closed and then reopened the value of $this->client_id doesn't change.

What do I have to do to get a number from the coppermine system that changes after the user reopens his browser ?

Some users get a new IP number when reconnecting to the internet. Concerning my problem, wouldn't it then be interessting to add the value $_SERVER["REMOTE_ADDR"] inside md5() line 45 ?

What is the best way to do ?

mcdezibel



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: getting a clearly identifying number for a user who is not logged in
« Reply #1 on: February 11, 2006, 12:36:57 pm »

IP addresses can be spoofed or not sent at all, not a reliable method imo. Most IP addresses for end users are assigned dynamically, so there's little use in tracking them.
Logged

Nibbler

  • Guest
Re: getting a clearly identifying number for a user who is not logged in
« Reply #2 on: February 11, 2006, 01:50:36 pm »

Set your own session cookie and use that.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.