This is something as I use for user authentication in the application.cfm
page.
Maybe it will help you?
Tomas
<CFPARAM NAME="CurrPage" DEFAULT="#CGI.PATH_INFO#">
<CFIF CurrPage NEQ "/MVF101/www/manager/index.cfm" >
<CFIF Not CompareNoCase(Session.ManagerUsers.ID, "")>
<CFLOCATION URL="#SYSHOSTADDR#/Manager/index.cfm?LoggedIn=You are not
logged in, please log in!!!" ADDTOKEN="Yes">
</CFIF>
</CFIF>
-----Original Message-----
From: Redd Liao [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 3:40 PM
To: CF-Server
Subject: Re: GetTemplatePath()
Maybe I question is not clear.
I mean it re-directs the page to index.cfm again and again.
It becomes a forever loop.
I need to fix this problem. thanks.
redd
----- Original Message -----
�H���: Redd Liao
�����: [EMAIL PROTECTED]
�ǰe���: Thursday, March 22, 2001 PM 06:33
�D��: GetTemplatePath()
hi,
I use IIS on Win 2000.
In my cfm file:
I set LoginFile = "C:\Inetpub\wwwroot\cyvdb\index.cfm"
then I use "IF" :
<cfif NOT #GetTemplatePath()# IS "#LoginFile#">
.......
<cflocation url="index.cfm" addtoken="no">
.......
</cfif>
Question:
I am 100% sure that #GetTemplatePath()# = #LoginFile#,
but it always re-director the page to index.cfm
that means that #GetTemplatePath()# is not #LoginFile#,
but I am 100% sure that #GetTemplatePath()# = #LoginFile#,
I use UCase(), Lcase(), LTrim() and RTrim(). It still doesn't work.
What should I do? Thanks in advance.
Redd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com