è tutto via javascript? lato php come faccio a verificare che il tipo è loggato?

mi spiegate un pò in breve thnx