|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
onsessionstart not being called with j2ee session variables
We're seeing some weird behavior on one of our applications.Scott Brady 03/12/10 12:37 P > We're seeing some weird behavior on one of our applications.Dave Watts 03/12/10 12:54 P Nope. (I had done everything fresh except for actually deleting theScott Brady 03/12/10 02:02 P > It looks like if we check "use j2ee session variables" in the admin,Jochem van Dieten 03/12/10 02:20 P Ugh. I knew it was something obvious.Scott Brady 03/12/10 03:02 P We're seeing some weird behavior on one of our applications. It looks like if we check "use j2ee session variables" in the admin, the our Application.cfc's onSessionStart() isn't called. (I put a dump and an abort in onSessionStart() to verify it). Is there something different about j2ee variables that could cause this? Or some special setting in Application.cfc we need to use? I've checked the web-inf/web.xml session-timeout setting to make sure it's longer than the CF settings. Here's the basic abbreviated code from application.cfc: <cfcomponent> <cfset this.sessionManagement = true> <cfset this.sessionTimeout = CreateTimeSpan(0,0,20,0) /> <cffunction name="onSessionStart"> <cfdump var="here"> <cfabort> <cfscript> // sign up form session.stSignupForm = structNew(); </cffunction> </cfcomponent> The dump of "here" doesn't show up with j2ee session variables checked. Scott Scott -- ----------------------------------------- Scott Brady http://www.scottbrady.net/ ----- Excess quoted text cut - see Original Post for more ----- You may already have an active J2EE session on that server. Try clearing your cookies first. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-autho Nope. (I had done everything fresh except for actually deleting the jsessionid cookies, but removing all of my cookies didn't fix the issue) Any other things? We can put in some kludge code in onrequeststart() to look for the existence of one of the session variables and manually call onsesionstart() if they don't exist, but I'm not a huge fan of that. Scott ----- Excess quoted text cut - see Original Post for more ----- ----- Excess quoted text cut - see Original Post for more ----- Doesn't your app have a name? Jochem -- Jochem van Dieten http://jochem.vandieten.net/ Ugh. I knew it was something obvious. I swear it's not my code. I'm just troubleshooting. :) Thanks! Scott > > > Doesn't your app have a name? > > Jochem > > -- ----------------------------------------- Scott Brady http://www.scottbrady.net/
|
July 31, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||