1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    12
    Vote Rating
    0
    mohamedaslam.a is on a distinguished road

      0  

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

    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
    Desrat is on a distinguished road

      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
    522
    Answers
    20
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      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

Thread Participants: 2