PDA

View Full Version : Multiple cookies...



extjs1111_user
17 Nov 2010, 3:46 AM
Hi,

Is it possible to create more than one cookie through extjs cookie provider. Sample code

var cookieOne = new Ext.state.CookieProvider({
expires:null
}
);

var cookieTwo = new Ext.state.CookieProvider({
expires:null
}
);

My app is too big to store values in one cookie and requirement is to store values in cookies .But it is making only one cookie.

Any help will be much appreciated

Thanks,

laurentParis
17 Nov 2010, 8:08 AM
var cookies = new Ext.state.CookieProvider({
expires:null
});
cookies.set('myFirstCookie', 'myFirstValue');
cookies.set('mySecondCookie', 'mysecondValue');