by max tac.
Thanks for the reply.
But what happens if the login fails?
The user does not remain on the site moodle? While I would like to leave him, in the site of origin, unless the login is not successful end.
or have I misunderstood?
that's why I asked if it was possible to interrogate the Moodle site with ajax.
can you help me?