Once the session variable has been stored then you can use it just like you would a $_GET or $_POST variable on any page.
Just start the session on the top of the page:
<?php
@session_start();
?>
Then you can add a parameter to your Recordset to compare a column value to your stored session variable just like you would a form or url parameter.