session.clear vs session.abandon code example Example: clear session php <?php unset($_SESSION['counter']); ?>