How is PHPSESSID generated?

It is advisable to use Psudeocode or PHP code. The links are even better on the components and procedures for generating PHPSESSID manually.

+3
source share
2 answers

The code that generates the sssion identifier is here - but it's C, since it implements PHP itself.

Basically, it uses a cryptographic hash function and enters the remote IP address, current time and some other things.

The hash function to use and optionally the source of additional entropy can be configured in php.ini .

+10
source

Source: https://habr.com/ru/post/1739982/


All Articles