the code to set the session is at lines 17 - 22
the code to create the rsVerify recordset is at lines 57 - 74
since the session variable uses a value in the recordset, the code for the session needs to be after the recordset.
move the code for setting the session to come just after the code for the recordset.