Thanks Ray
I understood that when you talk about choosing the name of the button on the trigger, you mean, like the tutorials I have read with great interest, that it is necessary to include a form with a submit button on which the trigger can be activated.
For me it is being complicated because I am used to working with the old panels Server Behaviors and Bindings of Dreamweaver in which behaviors like Close Session were applied on an <a> element ... I was looking for the same in MySQLi Server Behaviors. But the operation of this extension is quite different from the old obsolete code tools with which I handle so well.
Now I have placed those submit buttons to trigger the action and I still have some doubts because, in reality, I do not get to click on them to close the session nor, redirect the user to the login page...
I also can not even restrict access to the page. There is something there that escapes me. I hope during this weekend to send you a link with the files so you can check them out (something that I appreciate very much like the reading and the answers).