samedi 26 septembre 2015

Generate a Random Number that Stays for more than one PHP Process?

I have done some research on this and discovered the rand(), srand(), and mt_srand() yet they don't work too well for me.

I want PHP to generate a random ID (number) and then have it stay that way no matter how many times you refresh the page. I suppose this could be done with incrementing operators or session variables? Cookies perhaps?




Aucun commentaire:

Enregistrer un commentaire