I have a phonegap application that works offline (it needs a connection just to download the data and send back the data).
I am converting this app into a saas I used the multi-tenant connection string.
on the web it works great.
I am confused on how it will work in phonegap.
once the user connect to sync the data, I am setting the session variable to be used in the multi-tenant connection.
but what will happen once he get offline ?
should I set back the session id as before sending the data ?
how all this will work together ?

Thank you for any input,