I was wondering how Symfony generates session IDs? I was trying to find a snippet reponsible for it but I couldn't. Does it check for colission before returning ID or is it possible (probably nearly impossible but possible) to generate the same session ID for two users?
You can search for classes which implements SessionStorageInterface.
By default native PHP session storage is used, therefore PHP's session_id() is responsible for generating IDs.
Edit: There is another discussion here about how unique is this native session id.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With