I don't think OpenBD (yet) supports setting application attributes via the Application.cfc "this" scope. Try using the CFAPPLICATION tag instead.
Vince On Tue, May 4, 2010 at 10:16 AM, adam <[email protected]> wrote: > I must be doing something wrong. sessions do not appear to be working > correctly when I set j2ee session to true. Here is the application > section of my bluedragon.xml: > > <cfapplication> > <clientstorage>cookie</clientstorage> > <enabled>true</enabled> > <sessiontimeout>#CreateTimeSpan(0,0,20,0)#</sessiontimeout> > <applicationtimeout>#CreateTimeSpan(2,0,0,0)#</applicationtimeout> > <j2eesession>true</j2eesession> > </cfapplication> > > Here is my Application.cfc: > > <cfcomponent> > <cfscript> > this.name = 'testapp'; > this.sessionManagement = true; > this.sessiontimeout = CreateTimeSpan(0,0,20,0); > </cfscript> > </cfcomponent> > > Here is my index.cfm: > > <cfif not isdefined("session.counter")> > <cfset session.counter = 0> > </cfif> > <cfset session.counter = session.counter + 1> > <cfoutput>#session.counter#</cfoutput> > > On the first page load of index.cfm I get a value of 1 as expected. On > the second page load I get the value of 2 as expected. On all page > loads after that I continue to get the value of 2. > > I put this test together because my application stopped working after > I changed j2ee sessions to true. > > Is there something that I am missing? > > -- > Open BlueDragon Public Mailing List > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > mailing list - http://groups.google.com/group/openbd?hl=en > > !! save a network - please trim replies before posting !! > -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
