title: iPhone Webview onBackground event?
body: <p>I am developing a iphone app using phonegap. Now I want to maintain a session state when the app goes into the background. I want to persist that state even if the app gets killed by the OS. (Just consider saving some variables in javascript when the app goes into background)</p>
  
  <p>Is there some way I can do that? Does the UIWebView allows javascript to execute when the app is moving to background?</p>
  
  <p>Thanks</p>