Results 1 to 4 of 4

Thread: Setting cookies

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Setting cookies

    By using Ext.Cookies class in sencha touch 2.0. I did the following:
    Ext.util.Cookies.set('ci','some value);
    Then:
    Ext.util.Cookiesget('ci')
    it works fine!But when I enter another parameters like the domain, path, secure e.g:Ext.util.Cookies.set('ci','90f3ln8nBnXDQC666421==',null,'/','www.myapp.com',true??);the get function returns null .. Why?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    I'm unaware of Ext.util.Cookies in ST2
    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

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    So, How can I set cookies to a web browser using sencha touch 2.0?

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Personally I wouldn't. iOS 5's setting for cookies by default means that cookies won't be saved.
    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
  •