php what is a session code example
Example 1: php session destroy
<?php
// Destroy the currently active session.
session_destroy();
?>
Example 2: php session variables
<?php
session_start();
$_SESSION['var'];
?>
<?php
// Destroy the currently active session.
session_destroy();
?>
<?php
session_start();
$_SESSION['var'];
?>