destroy a PHP session completely php code example Example: clear session php <?php unset($_SESSION['counter']); ?>