the recordset looks correct, it may not have worked because the php server wasnt seeing the session.
Sometimes on pages that use session variables, the server needs a little kick in the right direction to see the session contents. this can be done by adding the following code at line 1 of your page:
<?php @session_start(); ?>