PDA

View Full Version : 4.0.2 and above, Coldfusion session management issue - workaround



MrSparks
20 Jun 2011, 2:02 PM
Builds 4.0.2 and above; state-management is enabled by default for every component. This causes an issue with Coldfusion session management.

e.g.


<cfapplication name = "MyApp" sessionTimeout = "#CreateTimeSpan(0,0,60,0)#" sessionManagement = "Yes" clientmanagement = "Yes">


I'm not sure why EXTJS is clearing/killing the CF session management but... As a work-around (and a bit of a blunderbuss approach) is to switch of EXTJS state-management at a global level.



Ext.override(Ext.state.Stateful, { stateful: false } );
Ext.override(Ext.AbstractComponent, { stateful: false } );


Thanks to stevil for helping me out on this one.

adi.shoukat
21 Oct 2012, 10:07 AM
I got the following error:
Uncaught TypeError: Cannot read property 'Stateful' of undefined