But sometimes we use attitional custom $_SESSION variables (i.e. "role", "group", "email", "name and surname", etc.) and we can forget to unset them at the logout.
A short and forget-safe procedure could be:
ulSessionManager::sessionDestroy();
Have a good coding day!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the provided example we see some unset calls to $_SESSION variables for the logout:
But sometimes we use attitional custom $_SESSION variables (i.e. "role", "group", "email", "name and surname", etc.) and we can forget to unset them at the logout.
A short and forget-safe procedure could be:
Have a good coding day!