-
14 Nov 2012 12:24 AM #1
Set a variable in session
Set a variable in session
Hi,
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.
Thanks
-
14 Nov 2012 7:51 AM #2
You don't need Sencha's help, LocalStorage is available on all the browsers Sencha Touch supports.
Just do:
Code:localStorage.setItem('xyz', 5); alert(localStorage.getItem('xyz'));
-
14 Nov 2012 7:47 PM #3
Hi themightychris,
Hi themightychris,
Thanks for the reply... I was just confused in setting a parameter.


Reply With Quote