17 Oct 2012 1:42 AM #1
Answered: How to use multiple proxies with a single model?
I'm just starting with Sencha Touch 2 and I'm implementing authentication for my app.
I've got Session model that currently uses Ajax proxy. The issue is that after successful authentication (success callback in session.save) with the server, I'd like to store session object in local storage, so when user launches the app again, I can read session data from local storage and automatically authenticate user if session data is present.
Currently I'm simply using HTML 5 localStorage directly. Is there some "Sencha Touch" way to do it?
It only supports one out of the box, supporting multiple you would need to handle.
19 Oct 2012 4:10 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
It only supports one out of the box, supporting multiple you would need to handle.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.