your welcome page includes the code to initialize the session:
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
the index page does not
since the recordset relies on the session, this code must be added to the index page to initialize the session.