session_id() function
<?php session_start (); echo "Your session identification number is ".session_id(); ?>