We usually play with session and create the session by server side script like PHP. But, how we create session with client side script?
In this case is EXTJS. OK… You can store cookie instead of session for this case.
This is the code;
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;
And if you need to clear that value from cookies