<cfset REQUEST.UserAgent = LCase( CGI.http_user_agent ) />
<cfif (
StructKeyExists( URL, "TestShortSession" ) OR
(NOT Len( REQUEST.UserAgent )) OR
REFind( "bot\b", REQUEST.UserAgent ) OR
Find( "crawl", REQUEST.UserAgent ) OR
REFind( "\brss", REQUEST.UserAgent ) OR
Find( "feed", REQUEST.UserAgent ) OR
Find( "news", REQUEST.UserAgent ) OR
Find( "blog", REQUEST.UserAgent ) OR
Find( "reader", REQUEST.UserAgent ) OR
Find( "syndication", REQUEST.UserAgent ) OR
Find( "coldfusion", REQUEST.UserAgent ) OR
Find( "slurp", REQUEST.UserAgent ) OR
Find( "google", REQUEST.UserAgent ) OR
Find( "zyborg", REQUEST.UserAgent ) OR
Find( "emonitor", REQUEST.UserAgent ) OR
Find( "jeeves", REQUEST.UserAgent )
)>
<cfset REQUEST.SessionTimeout = CreateTimeSpan( 0, 0, 0, 2 ) />
<cfelse>
<cfset REQUEST.SessionTimeout = CreateTimeSpan( 0, 0, 20, 0 ) />
</cfif>
<cfapplication
name="SessionTesting"
applicationtimeout="#CreateTimeSpan( 0, 1, 0, 0 )#"
sessionmanagement="true"
sessiontimeout="#REQUEST.SessionTimeout#"
/>
<cfsetting
showdebugoutput="false"
requesttimeout="20"
/>