Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


can't set the timeout of session variables up to 20 minutes

Posted on 2003-03-25
Medium Priority
Last Modified: 2013-12-24
i would like to set the timeout of my session variables to 6 hours, but after 20 minutes
(default in cf-administrator is 10 seconds) they timed out.

i tried to set it directly in my 'cfapplication - tag' with 'sessionTimeOut="#CreateTimeSpan(0,0,30,0)#"'
(for testing i set the timeout to 30 min) but it also timed out after 20 minutes.

when i set the timeout for example to 'sessionTimeOut="#CreateTimeSpan(0,0,0,10)#"' (10 seconds) then it works....

thanks for all ideas...


Question by:aletho

Expert Comment

ID: 8203196
The default timeout in the CFADMIN may be 10 seconds, but what is the MAXIMUM timout? It's to the left of the default. If this is set to 20 minutes, then you can never set the timeout greater than that. Try checking there first.

Try setting the Application timeout to 15 minutes and it should work, setting it to 25 will not then.

Expert Comment

ID: 8204218
Whatever you set in your APPLICATION.CFM page will never be longer than what has been set in Administration. It can be shorter, but never longer.

You must extend the timeout in Administration to see any effect from what you have set in your APPLICATION.cfm.

If you do not have access to Administration, the only option that comes to mind is to set a META tag with a refresh rate of about 19 minutes.  This way if a page just sits and the user does nothing for 19 minutes, the page will refresh itself and reset the session timer.

<meta http-equiv="REFRESH" content="19; url=/index.cfm">
LVL 14

Expert Comment

by:Renante Entera
ID: 8207395
Try to add the parameter ApplicationTimeOut for your <cfapplication> tag. Setting it to a desired time span for your default value of your ColdFusion Administrator.

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions


Author Comment

ID: 8216716
thanks for your answers...

shame on me. i made a beginner's mistake.
for info:
in cf-admin i have set the maximum timeout to
'12 hours' and the minimum timeout to '10 seconds',
but i haven't restarted the cf-server...
so the defaults for the maximum and minimum timeouts were
still set - '20 minutes'.

when i tried to set the timeout to e.g. '10 minutes' in the 'cfapplication-tag', it worked fine, because the 'cfapplication-tag' overrides the default 'minimum
when i tried to set the timeout to e.g. '30 minutes' in the 'cfapplication-tag', it didn't work, because the 'cfapplication-tag' doesn't override the default 'maximum

the lesson of my problem ->
when you are updating your timeouts for the session variables, RESTART your cf-server!!!

LVL 35

Expert Comment

ID: 10940890
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:


Please leave any comments here within the next four days.

EE Cleanup Volunteer

Accepted Solution

ee_ai_construct earned 0 total points
ID: 10973206
PAQed, with points refunded (50)

ee_ai_construct - (re-order part number #xm34)
Community Support Moderator

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question