I'm working on a project where I'm using jQuery Mobile, HTML5 and PhoneGap Build to create a cross platform app. The platforms we are targeting include Symbian^3.
I need to be able to keep track of some session data such as the user's ID and whether they're logged in. Symbian is a pain when it comes to this as none of the solutions I've tried seem to work.
I've tried:
- HTML5 sessionStorage and localStorage. Both of these cause the app on Symbian to freeze as soon as they are called.
- Cookies. These always return Undefined, even if you access them right after setting them.
- Global variables. I've created a .js with some var's defined for use across the app. This script is included in the head of each HTML file where it may be needed. Unfortunately this doesn't work since the variables are redefined when you switch between pages, losing the session data.
I've reached the limit of what I can accomplish through Web searches and experimentation, so I'm asking my first ever question on here. I'd be happy to upload some code samples though there really isn't much to show.
As for the actual question: How can I create a session context in a jQuery Mobile app on Symbian such that it persists across page transitions?