Wamp session IDs are insecure
Author: rizqidjamaluddinCreated Nov 3, 2014Updated Jun 26, 2025
LabelsWAMPawaiting feedback
WampConnection classes use uniqid() to generate an identifier that is later used by the user. This function gives fairly predictable strings (there's even a warning on the official PHP docs) and shouldn't be used for this purpose.
Preferably session identifiers would be generated using something like openssl_random_pseudo_bytes or another safer PRNG.
Source: ratchetphp/Ratchet