I would like to know if there is an equivalent of IsPostBack
in PHP. I want to call a function or a method only once, once the user is logged in.
I have a facebook application, in which once the user authorizes the application it should enter his details in the database. This basic stuff should have been done using the post-authorize callback url which facebook pings when the user first authorizes the app.
The issue is that since I am checking whether the user exists or not in index.php, I would not like index.php to run this code repeatedly for the same user when the user goes to the homepage every time.
Is there any PHP code that will run it only once?