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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -