Hi Matt,

Would be very interested to hear your opinion on client vars, because
I like them for high availability apps that need to scale. But lets
focus on the sessions first.

On 30 dec, 18:19, Matthew Woodward <[email protected]> wrote:
> Most important questions here: what version are you running, and what type
> of installation?

Open BlueDragon Product Version 2,0,1
Open BlueDragon Build Date 2011-12-01 16:13:52 GMT
Operating System Windows Server 2008 R2 amd64 (6.1)
Application Server Apache Tomcat/7.0.23
Java Virtual Machine Sun Microsystems Inc. 1.6.0_30

I reboot Tomcat to make sure we start clean. I have setup:

<cfset this.name = "appname">
<cfset this.sessionmanagement = "Yes">
<cfset this.clientmanagement = "No">
<cfset this.setclientcookies = "Yes">
<cfset this.sessiontimeout = CreateTimeSpan(0,0,0,5)>

Double check: Use J2EE Sessions = NO (checked in Bluedragon admin,
variables tab).

At that point I have 1 session in adminconsole open (since I am
checking active sessions there).

1) I load the page, in Firefox, I got CFID=0 and in admin console I
see there are now 2 active sessions.
2) I have also set a session.startdatetime in the onSessionStart.
3) When I reload or click link to same page, CFID remains 0,
session.startdatetime unchanged.
4) Now I wait for 10+ seconds, do the same, still CFID remains 0,
session.startdatetime unchanged.
5) At this point I am concluding that sessiontimeout is not working.
6) However, when I wait "for a couple of minutes" and reload, I have
the CFID still 0, but sessiontimeout is updated, so it looks like
session is replaced. I see it go through the onSessionStart indeed.
Active sessions still 2.
7) Closing / opening browser doesn't seem to do anything for me here,
same behavior. But this is Firefox, not IE. I can imagine in IE it has
something to do with the way cookies are being handled there. Will try
to clear all cookies before I try again in IE ---- after doing so,
behavior in IE is the same.
8) Tested in Chrome, same behavior. Have to wait way longer then 5
seconds before session is replaced. CFID value remains the same, but I
see session resetting.

I have setup session timeout default to 20 minutes btw, via admin.
Ofcourse I also tried to figure out the exact length that my session
remains, but it changes every time. I tested 4+ minutes with session
remaining. And see 40-50 seconds with sessions resetting. It is almost
like it is dependent on another process cleaning up sessions in the
app server. Either way, short sessiontimeout simply don't do what I
would expect.

Hope that gives you some ideas.

Ivo


-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to