Imam Al-Mahdi (AS) is alive on this earth and he meets , guides and helps people. He knows them but they do not recognize him during the major occultation.
Few of the very sincere believers can recognize him after the meeting is over. The most sincere servants of Allah who are very rare, can recognize him during seeing him. Such sincere and humble servants never speak in public that they saw the Imam (AS).