how to put a variable in session in php code example Example: php session variables <?php session_start(); $_SESSION['var']; ?>