If you need a unique identifier or token and you intend to give out that token to the user via the network (i.e. session cookies), it is recommended that you use something along the lines of
Si vous voulez utiliser un identifiant unique, ou bien gérer des cookies, il est recommandé d 'utiliser un code tel que celui-ci: