how to destroy php session code example
Example 1: end session variable php
// destroy the session
<?php
session_destroy();
?>
Example 2: php session variables
<?php
session_start();
$_SESSION['var'];
?>
// destroy the session
<?php
session_destroy();
?>
<?php
session_start();
$_SESSION['var'];
?>