Results 1 to 2 of 2

Thread: How to use multiple proxies with a single model?

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Location
    Poland
    Posts
    70
    Answers
    4
    Vote Rating
    5
      0  

    Default Answered: How to use multiple proxies with a single model?

    Hi,

    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?

  2. It only supports one out of the box, supporting multiple you would need to handle.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    It only supports one out of the box, supporting multiple you would need to handle.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •