Hi everybody and specialy xyzvisual,
Thanks for the solution. I have test it and it worked... until I used other plugin (like SMF one) that use OnWebLogin event too...
The refresh was done before calling the others callback functions and so the authentification in the SMF login wasn’t done.
I don’t know if it is possible to specify the order in wich the callback function on events are called.
So, in orders to keep everything working without having double reload, here is my solution (based on xyzvisual one):
In the file "assets/snippets/weblogin/weblogin.processor.inc.php", replace all:
$modx->sendRedirect($url,0,'REDIRECT_REFRESH');
by
header("Location: ".$url);
Hope this will work fine in every situation