Re:Why to not use JWT (2021)
by AndrewStephens on Thursday September 29, 2022 @11:37AM
(#33022194)
If your session Ids were short enough to be guessed then you were doing it wrong. The simplest thing to do is just use a unique GUID as a session id but a sufficiently large random number would do just as well.
Also randomly generating them would result in colisions if you had a lot of traffic.