House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

onsessionstart not being called with j2ee session variables

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Scott Brady
03/12/2010 12:37 PM

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/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/12/2010 12:54 PM

----- 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Scott Brady
03/12/2010 02:02 PM

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 -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jochem van Dieten
03/12/2010 02:20 PM

----- Excess quoted text cut - see Original Post for more ----- Doesn't your app have a name? Jochem -- Jochem van Dieten http://jochem.vandieten.net/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Scott Brady
03/12/2010 03:02 PM

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/


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

July 31, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
         1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31