Ive mentioned repeatedly that Accountify automatically saves session information to the account database when your script ends. But how is that possible?
register_shutdown_function feature. The mergeUserData function, which folds the user’s data into the $_SESSION array, also takes care of registering the loginSaveUserData function to be called when the script exits: register_shutdown_function(‘loginSaveUserData’); The loginSaveUserData function will now be automatically called when the script exits. And that’s our opportunity to take advantage of serialize and store the session data in the database.
Related Questions
- Ive mentioned repeatedly that Accountify automatically saves session information to the account database when your script ends. But how is that possible?
- If I am approved for a nanologin account, will my abstract automatically be accepted?
- Why does FoneRecharge automatically add the units to my Thuraya pre-paid account?