initialize the session globally core php code example
Example 1: session initialize php
session_start();
Example 2: php session variables
<?php
session_start();
$_SESSION['var'];
?>
session_start();
<?php
session_start();
$_SESSION['var'];
?>