Hi all,
Right now, i have a user table. In the user table there is a record_id (user_id) field which is an auto increment field. Every time I insert a new record, this field increment its value by 1.
When I retrieve a user profile, I query it based on this user_id since it is unique.
However, I am still not comfortable with this field has an auto increment. The reason is people can guess all the user_id in the table. They just enter the user_id =1, 2, 3, 4 .... and be able to retrieve all users.
What's the best way to keep track the record_id or user_id field? Anyone out here has a real application that use record_id different than auto_increment by 1 ?
Thanks