Should have included my Application.cfm page, sorry 'bout that.  It is quite 
simple:

<cfapplication name="MyApp"
    clientmanagement="Yes"
    sessionmanagement="Yes"
    sessiontimeout="#CreateTimeSpan(0,19,30,0)#"
    applicationtimeout="#CreateTimeSpan(0,19,30,0)#" />

<CFPARAM NAME="session.allowin" DEFAULT="false" />

<CFPARAM NAME="session.user_id" DEFAULT="0" />

<cfif session.allowin neq "true">
    <cfif  ListLast(CGI.SCRIPT_NAME, "/") EQ "login.cfm">
    <cfelseif ListLast(CGI.SCRIPT_NAME, "/") EQ "login_process.cfm">
    <cfelse>
        <script>
            // alert("You must login to access this area!");
            self.location="login.cfm";
        </script>
    </cfif>
</cfif> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-server/message.cfm/messageid:7027
Subscription: http://www.houseoffusion.com/groups/cf-server/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-server/unsubscribe.cfm

Reply via email to