For unique session transactions
<?php session_start(); $old_sessionid = session_id(); session_regenerate_id(); $new_sessionid = session_id(); echo "Old Session: $old_sessionid
"; echo "New Session: $new_sessionid
"; print_r($_SESSION); ?>
Attention in classroom