XenAPI
XenAPI copied to clipboard
Request - check if user is loged
It's possible with the API to know if an user is logged (and have the cookie) on Xenforo ?
if (\Drupal::currentUser()->isAnonymous()) { // is visitor on Drupal } else { // is logged on Drupal // check if the user is logged on xenforo (and have good cookie). If disconected on Xenforo, disconect the user in Drupal or connect the user on Xenforo (without the password, because already logged on Drupal). }