Coldfusion Session Timeout Application.cfc

I have a sessionTimeout for my project like this

<cfset this.sessionTimeout = "#createTimeSpan(0,5,0,0)#">

for some reason pages on a deeper level inside of other folders are timing out before the 5 hours within like 20 minutes... Do I need to insert this in all application.cfc's to make it work correctly? I thought they all trickle down from the top level.


A template or component file will use the first Application file it finds moving backward through the folder structure until it reaches the root. So as long as there is not an application.cfc or application.cfm between your template and the root the timeout should work.


Unless you are extending the previous Application.cfc, or possibly using the same application name, your previous setting will no longer exist. You could also increase it in the CF Admin to make it global.

链接地址: http://www.djcxy.com/p/60560.html

上一篇: 如何使用HTML5或Phonegap存储40.000图像?

下一篇: Coldfusion会话超时Application.cfc