You need to compare it to something:

<CFIF NOT (ListLast(cgi.script_name,"/") EQ "/")>

You can't do a string comparison in CF and have a boolean outcome (true/false)

tom

----- Original Message -----
From: "Les Mizzell" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, October 04, 2000 6:27 PM
Subject: RE: CFAPPLICATION Log-in page question (endless loop)


> OK,
>
> Assuming I have the syntax correct:
>
> <CFIF Session.LoggedIn EQ FALSE>
> <CFIF NOT ListLast(cgi.script_name,"/")>
> <CFLOCATION url = "login.cfm" addtoken="No">
> </CFIF>
>
>
> This gives me the following error:
> An error occurred while evaluating the expression:
> NOT ListLast(cgi.script_name,"/")
> Cannot convert login.cfm to boolean.
>
>
> Hmmmmm......Now I'm starting to feel pretty stupid.  I understand what it's
> *supposed* to be doing, just can't figure out how to do it!
>
>
>
> Les Mizzell
> ***********
> Some people say I'm too apathetic.
> But why should I care?
>
>
> > -----Original Message-----
> > From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 04, 2000 4:01 PM
> > To: CF-Talk
> > Subject: RE: CFAPPLICATION Log-in page question (endless loop)
> >
> >
> > I use ListLast(cgi.script_name,"/") to determine the page that is being
> > executed.  This way you don't have to worry about paths, you can
> > just check
> > for the actual template name (e.g., login.cfm).
> >
> > Bob
> >
> > -----Original Message-----
> > From: Les Mizzell [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 04, 2000 3:22 PM
> > To: CF-Talk
> > Subject: CFAPPLICATION Log-in page question (endless loop)
> >
> >
> >
> > Trying to create a login app for a section of the site.
> > All in the same directory I've got:
> >
> > 1. application.htm
> > 2. login.cfm
> > 3. login_process.cfm
> >
> > Problem I've got is, on my local dev machine, trying to preview the
> > login.cfm file puts me into a nasty endless loop.
> >
> > <CFAPPLICATION name="AAISecure" clientmanagement="Yes"
> > sessionmanagement="Yes" setclientcookies="Yes">
> > <CFIF NOT IsDefined("Session.LoggedIn")>
> > <CFSET Session.LoggedIn=False>
> > </CFIF>
> >
> > <CFIF Session.LoggedIn EQ FALSE>
> > <CFIF NOT (CGI.PATH_INFO EQ "/login.cfm") OR
> > (CGI.PATH_INFO EQ
> > "/login_process.cfm")>
> > <CFLOCATION url = "login.cfm" addtoken="No">
> > </CFIF>
> > </CFIF>
> >
> > Shouldn't "CGI.PATH.INFO" EXCLUDE both "login.cfm" and
> > "login_process" from
> > being redirected back to "login.cfm" while the pages are being processed?
> > Doesn't seem to be the case.  Or maybe I've just got the syntax
> > wrong here.
> >
> > I tried both document ("login.cfm") and site relative
> > ("/login.cfm") paths,
> > but seems to make no difference.
> >
> >
> >
> > I'm on the verge of figuring all this out, there's just a few
> > stupid things
> > I ain't quite got my head wrapped around yet!
> >
> >
> > Les Mizzell
> > ***********
> > Some people say I'm too apathetic.
> > But why should I care?
> >
> > ------------------------------------------------------------------
> > ----------
> > --
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> > send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> > the body.
> >
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to