I'm working on a Web App similar to a discussion board and I want to give logged in users the ability to switch to an anonymous mode in which their username is not displayed but replaced by an ID when they post or reply to a topic. So the question is what is the best way to generate this ID given that :
- A user has the same ID in the same topic.
- The ID for the same user is different from a topic to another.
I'm in a LAMP environment so if you can suggest any PHP function to generate the ID or a way to store it in MySQL database that will be great.
Thanks !