I think I got it. On logout, we were using structClear(session), and while working on a workaround, I coincidentally came to the livedocs for structClear, which mention never to use it on session. There is a technote that explains that it deletes the cfid/cftoken/jsessionid and that's bad...
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_17479 So my question is what is the correct way to kill a session? Russ > -----Original Message----- > From: Russ [mailto:[EMAIL PROTECTED] > Sent: Friday, December 01, 2006 2:22 PM > To: CF-Talk > Subject: RE: division by 0 error > > This is what I'm using as a workaround > > <cftry> > <cfapplication name="myapp" > clientmanagement="Yes" > sessionmanagement="Yes" > setclientcookies="No" > sessiontimeout="#CreateTimeSpan(0,2,0,0)#" > clientstorage="myclientdsn"> > <cfcatch type="java.lang.ArithmeticException"><cfif > isDefined("session")><cfdump var="#session#"><cfelse><cfoutput>session is > not defined #cookie.jsessionId# <cfcookie name="jsessionId" value="" > expires="#Now()#"><cflocation url="http://#cgi.server_name#" > addtoken="no"></cfoutput></cfif></cfcatch> > </cftry> > > Is there a better way? Perhaps something that will preserve the form > post? > > Russ > > > > -----Original Message----- > > From: Russ [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 01, 2006 2:10 PM > > To: CF-Talk > > Subject: RE: division by 0 error > > > > I found a workaround. Basically I put cfapplication in a try catch > block, > > and if it fails, I force the jsessionid cookie to expire and redirect > them > > to the homepage. Seems to do the trick... > > > > I dumped the session before it broke, but don't see anything weird... > > > > Russ > > > > > -----Original Message----- > > > From: Dave Watts [mailto:[EMAIL PROTECTED] > > > Sent: Friday, December 01, 2006 1:51 PM > > > To: CF-Talk > > > Subject: RE: division by 0 error > > > > > > > I'm not sure how... The error doesn't always happen on the > > > > same action. > > > > > > Use onRequestEnd/onRequestEnd.cfm to log your session data? > > > > > > Dave Watts, CTO, Fig Leaf Software > > > http://www.figleaf.com/ > > > > > > Fig Leaf Software provides the highest caliber vendor-authorized > > > instruction at our training centers in Washington DC, Atlanta, > > > Chicago, Baltimore, Northern Virginia, or on-site at your location. > > > Visit http://training.figleaf.com/ for more information! > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262493 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4