Hello all,
I have an area of a website that users log into. Upon logging in, they are given a certain access level based off criteria in the datasource. For regular users, the sessiontimeout in my application.cfm file looks like this: <cfapplication name="MemberSession" sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#">. Is there a way, based off the criteria in the datasource that assigns access levels (ALevel), to make the sessiontimeout longer for certain "privileged" users? I tried the code below, but CF returned an error.
<cfif Session.ALevel neq 'SEC' or Session.ALevel neq 'EXSEC'>
<cfapplication name="MemberSession" sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
<cfelse>
<cfapplication name="MemberSession" sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,90,0)#">
</cfif>
Thank you!