For the session variable I was thinking that this would be one that you create after the verify page has been submitted and you filter a recordset with the values. If the recordset has a record in it then you would set this session variable and send the user to the profile page.
Do you have the check with the recordset occurring? Are you redirecting the user to the profile page after you check the recordset? If so then you should be able to just add in a session variable of your choice just before the redirect. When you set the variable here you should be able to check it on the profile page with the code from the post. If you have any further problems with this please post back and include the code you have in place for the rs check and the redirect to the profile page.