If you've updated to the latest version of the iPhone app and it logs you out every time you close the app, please delete the app and re-install it. In every case this has fixed the bug.
We're still trying to determine what's causing this to happen with some users, but until then the delete/re-install technique will fix the problem.