Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
What does "unique identifier" mean? primary key? :-)
If something is temporary (the session is there or something like that), then why is the UUID not suitable?
Depends on the application. For data binding inside the database, an auto-incrementing primary key is quite suitable, and for a URL or an intra-service address, you can use a login or, if the login is not suitable, generate a hash from the microtime, for example, and write it as an identifier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question