Hello everyone. I was asked by a friend to write about PHP sessions. He wanted me to shed some light on that concept and allow him to use it in his next project.
When he asked I was like, "PHP session?! Hahaha".
The point is, I was surprise in some way that there is someone who still does/hasn't understood what sessions are and probably how and when to use them. Then I decided to amplify the rate of such people, and it turns out that there are many people out there who are looking for a simple and clear resource to introduce this great feature of PHP.
So; in this post I will take you through sessions. We'll see what sessions are, why and when do we need to use sessions, all with examples.