use your php session in javascript realtime. set, get, remove your session on both sites.