In this case is EXTJS, you can store cookie instead of session.
The first thing you need to do is setProvider and set a variable into it;
Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); Ext.state.Manager.set("varA",varA);
And then to get varA from cookies;
Ext.state.Manager.get("varA")
And if you need to clear that value from cookies
Ext.state.Manager.clear("varA");
That's it!
Tidak ada komentar:
Posting Komentar