May I ask why? Php 5 has reached end of life and is unsupported. Version 5.0 reached end of life over 14 years ago and 5.6, the last 5.x version reached EOL 10 months ago. Heck, even version 7.0 has already reached end of life and 7.1 active support ended 11 months ago and 7.2 only has 17 days left of active support.
I provided some of the code to the OP. I didn’t want to land both of the codes on the same version where it may be a bit confusing to the OP. So I just said 5.5 and higher for session_status(). But it is indeed supported on 5.4 as well.
I don’t know the correct reason of it at the moment.
I might have too short experience with the coexist to understand how inconvenient it is.
With keep the quote above in my mind, I’ll try to migrate old project with coexist till I experience to know the correct reason of it.
It will take time, but I understand the procedures at least .
If the direction is on the right, It’s okay that I go slow.
Anyway, I’ll keep the quote above in my mind.
This will be another challenge for me.
I feel having long way to go.