1. #1
    Sencha User naveedanjum's Avatar
    Join Date
    Feb 2010
    Location
    Islamabad, Pakistan
    Posts
    21
    Answers
    1
    Vote Rating
    0
    naveedanjum is on a distinguished road

      0  

    Question Unanswered: Ext.state.SessionProvider whats the alternative in Ext JS 4

    Unanswered: Ext.state.SessionProvider whats the alternative in Ext JS 4


    Whats the alternative for Ext.state.SessionProvider in Ext JS 4.

    Ext.state.Manager.setProvider(new Ext.state.SessionProvider({state: Ext.appState})) ???
    Farrukh Naveed Anjum
    Team Lead (Software Engineer)

  2. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Answers
    85
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    There is a cookie provider available or you can use the HTML5 LocalStorageProvider. If you want to use something else you must implement your own provider I think.

    Code:
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
        expires: new Date(new Date().getTime()+(1000*60*60*24*7)), //7 days from now
    }))

Thread Participants: 1