whenever you use a session, always include the following code before referencing the session variable:
<?php if(!session_id()) session_start(); ?>
no need to use a recordset for this.
on the login page, double click the authenticate user server behavior. on the third step, select the First name and last name columns to be stored in session variables once the user name logs in, instead of the recordset, you can display the sessions that are created.