Does anyone know how the PHPSESSID is created, or better yet, what parameters PHP uses to create it?
Here is my concern:
I have 3 webservers (through a load balancer)that use sessions. All the session info is stored on one session server which is running MySQL. I originally thought all PHPSESSID's created were unique. I then went through my logs and noticed that PHP reuses some PHPSESSID's. From this I concluded that the REMOTE_HOST of the user has something to do with how the PHPSESSID is created.
My question is since my 3 webservers know nothing of the others' existence, how does the PHP on each of these servers know whether a certain PHPSESSID is currently in use or not? More simply, can I rely on websrv1 creating a PHPSESSID that was not recently created (and still active) by websrv2 or websrv3? Or is it safer to create my own PHPSESSID's with md5 or something?
Any help is appreciated.