This might help you Adjacency is not something that is really relevant for this question. in PHP way of things, sessions are essentially files that contain serialized data on the server. The browser that called a script containing session_start() call receives a special token that identifies the session on the server, and it is normally (though not necessarily) stored as a cookie.
Is it possible to force termination of backgrounding apps on iOS?
hope this fix your issue No. It is not possible to affect anything outside of your sandbox without API calls. None exist for affecting other processes in the public API. Have you tried to minimize your memory usage? In my experience once a memory warning it thrown apps can be more likely to have problems once they are in the background, even when memory usages drops.
Backgrounding Phonegap and the relationship between Activity, Process, and Service life-cycles