Azadi
2009-03-31 13:48:45 UTC
i am not 100% sure if this would work in your case, but you can try
setting a different session timeout if session.times_logged_on > 3 by
wrapping your session timeout setting code in a cfif block... would only
work with Application.cfc, though...
<cfcomponent>
<cfscript>
...
THIS.sessiontimeout = createtimespan(0,1,0,0);
if( structkeyexists(session, 'times_logged_on') AND
session.times_logged_on gte 3 ) THIS.sessiontimeout =
createtimespan(0,0,20,0);
...
</cfscript>
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
setting a different session timeout if session.times_logged_on > 3 by
wrapping your session timeout setting code in a cfif block... would only
work with Application.cfc, though...
<cfcomponent>
<cfscript>
...
THIS.sessiontimeout = createtimespan(0,1,0,0);
if( structkeyexists(session, 'times_logged_on') AND
session.times_logged_on gte 3 ) THIS.sessiontimeout =
createtimespan(0,0,20,0);
...
</cfscript>
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/