php store session variables in class code example Example: php session variables <?php session_start(); $_SESSION['var']; ?>