Discussion:
session timeout not working (2)
(too old to reply)
michaelmuller
2005-03-28 18:11:16 UTC
Permalink
I'm not sure if session var timeouts are supposed to work this way, but I set
the sessiontimeout and the defaults thusly: ----------------------------
<cfapplication name='#thename#' sessionmanagement='Yes'
sessiontimeout='#CreateTimeSpan(0, 1, 0, 0)#'> ----------------------------
[x] Enable Session Variables Maximum Timeout Session Variables 2 days 0 hours
0 mins 0 secs Default Timeout Session Variables 0 days 0 hours 20 mins 0 secs
---------------------------- Session vars still timeout in 20 minutes,
regardless of what i put in the cfapplication tag. I've rebooted the server but
nothing changes. Is there some other setting I don't know about? Is it
actually possible to set the session var timeout in our code? I'd like to allow
users to be able to change their own timouts between the two min/max values. At
the moment I'm stuck at the min number. Any advice? Is there anyone out there
using session vars this way successfully? Thanks, Michael
JMGibson3
2005-03-28 20:53:07 UTC
Permalink
One would think it wouldn't matter, however:

Neither the 'book' nor my actual working code application.cfm's have quotes around the TimesSpan operand. Try ditching them and you might be in business.
Tom Jordahl
2005-03-28 23:03:33 UTC
Permalink
The settings in the admin are overriding the ones you are trying to set in
the cfapplication tag. Change the maximum there and you should be all set.
--
Tom Jordahl
Macromedia Server Development
walker25419
2005-03-29 02:01:42 UTC
Permalink
Tom, according to your documentation under 'Selecting and enabling session
variables in ColdFusion MX Administrator' 'Change the default session time-out.
Application code can override this value. The default value for this time-out
is 20 minutes. ' I believe that the problem is the quotes around the
CreateTimeSpan.
gwgiswebmaster
2005-03-31 13:15:13 UTC
Permalink
If you are using Microsoft IIS - check the Configuration button under Properties/Virtual Directory. I've found the session settings there tend to override everything else.
michaelmuller
2005-04-05 21:28:19 UTC
Permalink
AAAAHHHHAAA!!!!!!!!!!!!

That's got to be it! How do I override this setting or make it so the application takes precedence? Just uncheck it?

Michael
michaelmuller
2005-04-05 21:31:36 UTC
Permalink
Tom, You said: 'The settings in the admin are overriding the ones you are
trying to set in the cfapplication tag. Change the maximum there and you should
be all set.' But, the maxium is set to 2 days. Are you saying that the maximum
is somehow forcing the app to timeout after just the minimum time? I have the
cfapplication tag setting to 1 hour, which is between the min and the max. I
don't understand...
Tom Jordahl
2005-04-06 20:20:02 UTC
Permalink
The default maximum timeout for session variables is 2 days, so I was
incorrect that this would override your cfapplication defined timeouts.
Sorry about that.

So I am left with nothing - I don't see anything wrong with your
sessionTimeout attribute. The quotes should be OK. The admin settings look
fine. We must be missing something, but I don't know what.
--
Tom Jordahl
Macromedia Server Development
Continue reading on narkive:
Loading...