Write a program to create a session to set a value in session and to remove data from a session code example
Example 1: php session variables
<?php
session_start();
$_SESSION['var'];
?>
Example 2: session start php
<?php
// This sends a persistent cookie that lasts a day.
session_start([
'cookie_lifetime' => 86400,
]);
?>