6 of 110 menu

Clear PHP Session

You can completely clear the session using the session_destroy function. See the example:

<?php session_destroy(); ?>

A specific session variable can be deleted using the unset function. See the example:

<?php unset($_SESSION['name']); ?>

Note that to clear the session, it must first be started via session_start.

English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline