Results 1 to 3 of 3

Thread: Is it possible to set expiry for local storage in sencha touch 2.1.1

  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    12
    Vote Rating
    0
      0  

    Default Unanswered: Is it possible to set expiry for local storage in sencha touch 2.1.1

    Is it possible to set expiry for local storage in sencha touch 2.1.1, like we do for cookies in java script.
    If so please post some sample code on how to do this.

    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Nov 2013
    Posts
    9
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Local storage doesn't use expiration time, the data remains forever (unless it's specifically removed)

  3. #3
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    548
    Answers
    22
    Vote Rating
    44
      0  

    Default

    correct. you would want to manage this within your app. encrypt the info if security is your concern or hit it with cordova and throw a sql db under the covers... depending on your situation. hope this helps. JB
    I love being a dad (5 & 7), flying airplanes (KBED) and writing code (spaghetti).
    BostonMerlin aka John Bond aka JB
    See U @ SenchaCon '13

Posting Permissions

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