Jump to content

Idenity User


larynx

Recommended Posts

I Want To Place Every User That Enters My Site Into A SQL Database And Then Extract Stats From That Database So I Need To Be Able To Uniquely Identify Every User. So What Is The Best Way To Uniquely Identify A User In Your Site Using PHP, Is It Through A Session ID, IP Address, Cookie, Or Something Else?

Thanks In Advance...
Link to comment
https://forums.phpfreaks.com/topic/33983-idenity-user/
Share on other sites

Will You Be Coding In Camel Case As Well?

Have them register with a username and password. The other methods are flawed because:
Sessions die when the user leaves, or if it times out they may start a new one.
IP: IPs can be dynamic, or shared. My husband and I use the same IP at home, but then I use a different one at work, and we change ours regularly.
Cookies: Can be blocked, cleared, etc.
Link to comment
https://forums.phpfreaks.com/topic/33983-idenity-user/#findComment-159667
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.