SteelDragon
Programmer
Ok, I've been around the bend with this about 8 million times, someone PLEASE HELP!!!! I have a page that in included in my application.cfm file, via CFInclude, that is to redirect a user based on a database variable. I cannot get it to work at all!! Here is my redirection page code, please someone Help me.... I needed this last week 
Thanks in advance,
SteelDragon
-----------begin code-------------
<CFAPPLICATION NAME="MyApplication" SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT="#CreateTimeSpan(0,0,0,30)#" APPLICATIONTIMEOUT="#CreateTimeSpan(0,0,0,30 )#">
<CFPARAM NAME="session.LoggedIn" DEFAULT="FALSE">
<!-- If the user is not logged in yet -->
<CFIF #SESSION.LOGGEDIN# IS "FALSE">
<!-- ... and not currently on the login pages, or the forgotten password page -->
<CFIF (CGI.SCRIPT_NAME IS NOT "/login.cfm"
AND (CGI.SCRIPT_NAME IS NOT "/PowerOLAP/results.cfm"
>
<SCRIPT LANGUAGE="JavaScript">
alert("The system has detected you have not logged in or your session on this machine has timed out. You will now be prompted for your login/password."
;
self.location='login.cfm';
</SCRIPT>
</CFIF>
<CFELSE>
<!-- this will reset the time stamp every time the user accesses a non-login related page, to keep track of his activity. -->
<CFIF (CGI.SCRIPT_NAME IS NOT "/login.cfm"
AND (CGI.SCRIPT_NAME IS NOT "/PowerOLAP/results.cfm"
>
<CFSET APPLICATION.USERSLOGGEDIN["#Session.UserID#"].TIMECREATED = NOW()>
</CFIF>
</CFIF>
<cftry>
<cfif CheckUser.WebCustomer is -1>
<cflocation url="../Scripts/cgi-bin/cgirdir.exe?PartnerFTP" addtoken="No">
<cfelseif CheckUser.WebPartner is -1>
<cflocation url="../Scripts/cgi-bin/cgirdir.exe?CustomerFTP" addtoken="No">
<cfelse>
<CFLOCATION url=" addtoken="No">
</cfif>
<cfcatch>
</cfcatch>
</cftry>
------------end code-----------
Thanks in advance,
SteelDragon
-----------begin code-------------
<CFAPPLICATION NAME="MyApplication" SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT="#CreateTimeSpan(0,0,0,30)#" APPLICATIONTIMEOUT="#CreateTimeSpan(0,0,0,30 )#">
<CFPARAM NAME="session.LoggedIn" DEFAULT="FALSE">
<!-- If the user is not logged in yet -->
<CFIF #SESSION.LOGGEDIN# IS "FALSE">
<!-- ... and not currently on the login pages, or the forgotten password page -->
<CFIF (CGI.SCRIPT_NAME IS NOT "/login.cfm"
<SCRIPT LANGUAGE="JavaScript">
alert("The system has detected you have not logged in or your session on this machine has timed out. You will now be prompted for your login/password."
self.location='login.cfm';
</SCRIPT>
</CFIF>
<CFELSE>
<!-- this will reset the time stamp every time the user accesses a non-login related page, to keep track of his activity. -->
<CFIF (CGI.SCRIPT_NAME IS NOT "/login.cfm"
<CFSET APPLICATION.USERSLOGGEDIN["#Session.UserID#"].TIMECREATED = NOW()>
</CFIF>
</CFIF>
<cftry>
<cfif CheckUser.WebCustomer is -1>
<cflocation url="../Scripts/cgi-bin/cgirdir.exe?PartnerFTP" addtoken="No">
<cfelseif CheckUser.WebPartner is -1>
<cflocation url="../Scripts/cgi-bin/cgirdir.exe?CustomerFTP" addtoken="No">
<cfelse>
<CFLOCATION url=" addtoken="No">
</cfif>
<cfcatch>
</cfcatch>
</cftry>
------------end code-----------