clear a session variable when used once code example Example: clear session php <?php unset($_SESSION['counter']); ?>