Thursday, October 12, 2006

CreateTimeSpan() and Session Timeouts

I wanted to determine how long my sessionTimeout value was set for in a given application. After quite a bit of trial and error, a 'value' created with CreateTimeSpan() can be reverted or converted to minutes by using the following calculation:

value * 24 * 60

So, to put that in perspective when using session timeouts, the following code would be applicable.

<cfset appinfo = createObject('component', 'application')>
<cfdump var="#evaluate((appinfo.sessionTimeout * 24 * 60))#">

No comments:

Post a Comment