I've tried a few more of the changes you guys suggested here:
<!--- check if user is logged in --->
<cfset currentlocation = GetFileFromPath(getBaseTemplatePath())>
<cfif currentlocation neq "login.cfm">
<cfif GetAuthUser() eq "">
<cfinclude template="login.cfm">
<cfabort>
</cfif>
</cfif>
I've got the variable renamed (you're right, it is more clear this way).
Instead of relying on a cflogin variable, I'm checking to see whether a user
has been logged in with the GetAuthUser() function. I'm using the alternate
method you suggested to get the file info. And I've got the cfinclude instead
of cflocation. But I'm still getting the redirection limit exceeded error.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200240
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54