if($sess_ref) { $sess_ref->close(); # If there is a session open, close it } if($dbh) { $dbh->disconnect(); } print end_html();