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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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.

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.


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

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

762 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