I just want to know how PHP encrypts the session cookies.
The reason is for example, if 24 always get encrypted to _randomString, then an attacker can make a request using that _randomString as the session ID, thus impersonating the user with id=24.
Even if 24 doesn't always get encrypted to the same _randomString, what I am worried about is the fact that PHP always encrypt in a certain way and we can't change the secret key for example, Which makes it easy for an attacker.
Also I am not sure if PHP use A secret key encryption.
Thank you