Jump to content

Creating user unique ID's


michael624

Recommended Posts

I am creating a database that involves users and a UID. I have a 'user_id' so to relate to other tables in joins. Also I have a 'uid' so each user has a unique ID for outside database tracking.

 

I have partners that tell me when my user visits their site by the URL like this:

www.sample.com/visit.php?uid=432jh65j

 

They then send an a message to me saying user '432jh65j' has visited their site.

 

I wanted to know if I should have a seperate 'uid' and 'user_id', the uid is for outside tracking and the user_id is for joins. Is this ok?

Link to comment
https://forums.phpfreaks.com/topic/160828-creating-user-unique-ids/
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.