Is it a good idea to choose php-session-id as primary key in a MySQL-Database? Will there be unexpected surprises?
Why I am asking this question: I want to store visitor-behavior and want to identify visitors on their session-id at that time.
I do not know exactly what criteria a PHP session ID is generated. That's why I also do not know if someday might exist duplicates.
EDIT2: Aside from performance issues a session ID is not always unique. Therefore, one should not use it as a PK. See here Link1