var expiry = new Date(now.getTime() + 600 * 1000);
Ext.util.Cookies.set("ssid", ''+obj.ssid+'', expiry);
In store url: 'http://localhost:3000/wialoncollector/items/'+Ext.util.Cookies.get("ssid"),
I get session with cookies, when referring to the store, I have first request:
http://localhost:3000/wialoncollector/items/null?_dc=1414052731251&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback1
I checked in the cookie ssid exists, but ssid=null,
If immediately reran my application request it's ok:
http://localhost:3000/wialoncollector/items/1d7ae368c57152a06220b4376e15b32d?_dc=1414052731251&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback1
What am I doing wrong?I understand when the application initializes Store recorded session that has not yet had time to go to the cookie
I have problem with store and cookies.
Aucun commentaire:
Enregistrer un commentaire