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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.