how to print session variables in php code example
Example 1: php session variables
<?php
session_start();
$_SESSION['var'];
?>
Example 2: echo session
print_r($_SESSION);
<?php
session_start();
$_SESSION['var'];
?>
print_r($_SESSION);