I have a file where I setup a connection to Mysql: And in a script I have set a fetch() where in the response I want to close the existing connection if dataU.data[‘cod_tipo_usu’] == 1 because it’s a completely new page that has a register form and it doesn’t have relation with the connection with the database. I did tried