$_SESSION php in js code example Example: $_SESSION php example <?php session_start(); echo session_id(); ?>