Results 1 to 2 of 2

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

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

    Question 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,154
    Answers
    87
    Vote Rating
    34
      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
    }))

Posting Permissions

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