Web pages hold temporary data. To make it dynamic, we can store
our data on the server. We can use session to achieve this special
To work with session, we can store and retrieve data by its
We start with a simple session_start() function.
Consider someone has logged in by filling out a form. We can
keep or store that name just by starting session. It is something like
– you have issued a ticket to someone who can now enter your
application and stay there for some time. When his or her session
ends, the user has to leave.