php reset all sessions code example
Example 1: clear session php
<?php
unset($_SESSION['counter']);
?>
Example 2: php session destroy
<?php
// Destroy the currently active session.
session_destroy();
?>
<?php
unset($_SESSION['counter']);
?>
<?php
// Destroy the currently active session.
session_destroy();
?>