All Vskills Certification exams are ONLINE now. You may take from any where any time | Please use TOGETHER for 20% discount

Certified PHP Developer Learning Resources Deleting Sessions and Variables

Deleting Sessions and Variables

To delete some session data, you can use the unset() or the session_destroy() function.

The unset() function is used to free the specified session variable:

You can also completely destroy the session by calling the session_destroy() function:

session_destroy() will reset your session and you will lose all your stored session data.