14 Nov 2012 12:24 AM #1
Set a variable in session
Suppose i have a variable xyz = 5, i want to set it in session in sencha touch 2. Can anyone please tell me how can i set it in session, please provide me a get method also.
14 Nov 2012 7:51 AM #2
You don't need Sencha's help, LocalStorage is available on all the browsers Sencha Touch supports.
localStorage.setItem('xyz', 5); alert(localStorage.getItem('xyz'));Chief Architect @ Jarv.us Innovations
Co-captain @ Code for Philly
Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.
Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes
14 Nov 2012 7:47 PM #3
Thanks for the reply... I was just confused in setting a parameter.