onsessionstart not being called with j2ee session variables

2010-03-12 Thread Scott Brady

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/

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331679
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: onsessionstart not being called with j2ee session variables

2010-03-12 Thread Dave Watts

 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.

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

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331682
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: onsessionstart not being called with j2ee session variables

2010-03-12 Thread Scott Brady

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

On Fri, Mar 12, 2010 at 10:52 AM, Dave Watts dwa...@figleaf.com wrote:


 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

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331695
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: onsessionstart not being called with j2ee session variables

2010-03-12 Thread Jochem van Dieten

On Fri, Mar 12, 2010 at 6:35 PM, Scott Brady wrote:
 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).

 cfcomponent
        cfset this.sessionManagement = true
        cfset this.sessionTimeout = CreateTimeSpan(0,0,20,0) /

        cffunction name=onSessionStart
                cfdump var=here
                cfabort
        /cffunction
 /cfcomponent

Doesn't your app have a name?

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331696
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: onsessionstart not being called with j2ee session variables

2010-03-12 Thread Scott Brady

Ugh. I knew it was something obvious.

I swear it's not my code. I'm just troubleshooting. :)

Thanks!

Scott

On Fri, Mar 12, 2010 at 12:19 PM, Jochem van Dieten joch...@gmail.com wrote:


 Doesn't your app have a name?

 Jochem


-- 
-
Scott Brady
http://www.scottbrady.net/

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331697
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm