I'm working on a Salesforce/Quickbooks integration for a Force.com application. I need for the app to autosync during the user's initial login to the customer portal. Throughout the session, the sync will be on-demand, triggered by changes to the database (insert, update, or delete operations) for relevant objects. The on-demand sync is straightforward. However, I'm having difficulty finding a way to automatically start the sync at the beginning of the session.
We're using custom visualforce pages.