well, your sample data doesn't make sense with your question.
you say:
So now lets say i login & my userID is 3.
then say:
So i want to display no 2 by filtering ProductUserId from PRODUCT DB.
and your sample data for product 2 says:
ProductID ||| ProductName ||| ProductUserId
2 ||| sample1 ||| 4
which is for User ID 4, not for User ID 3
the sample data for product ID 1 is for userID 3:
ProductID ||| ProductName ||| ProductUserId
1 ||| sample1 ||| 3
nevertheless, Ian S's initial response:
Then filter the products table with the value of the user ID in the session variable.
is the correct way to do what you are asking about.
you use the UserID session variable created at login to filter the ProductUserId column of the products table.