<cfapplication name="MyApp"
clientmanagement="yes"
sessionmanagement="Yes"
setclientcookies="no"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#"
applicationtimeout="#CreateTimeSpan(0,2,0,0)#">
<cfparam name="Session.allowin" default="false">
<cfparam name="Session.MM_Login_ID" default="0">
<cfif session.allowin neq "true">
<cfif ListLast(CGI.SCRIPT_NAME, "/") EQ "index.cfm">
<cfelseif ListLast(CGI.SCRIPT_NAME, "/") EQ "login_process.cfm">
<cfelse>
<script>
alert("You must login to access this area!");
self.location="index.cfm";
</script>
</cfif>
</cfif>
<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
<cfset cfid_local = Cookie.CFID>
<cfset cftoken_local = Cookie.CFTOKEN>
<cfcookie name="CFID" value="#cfid_local#">
<cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>
|