php - Automatically refresh window when login -
i have facebook app might run in tab. if user not logged in, displays login button. want window automatically refresh if user logs in window/ tab. idea how can this?
i make function in javascript checks if user logged in , refreshes page if so. lets call function checkifuserisloggedin()
, put function in interval setinterval("checkifuserisloggedin()", intervaltime);
way can example let page check every 10 seconds if user logged in , have refresh if so.
Comments
Post a Comment