Hi everyone.

I've got an application.cfm file that I'm trying to make work (learning session 
variables) from the CF dummies book.  I end up with an endless loop.  I think what is 
happening is that
the variable CGI.PATH_INFO is not returning any value, though I don't get an error 
message.  I've tried using it locally on my computer and uploading it to my website.  
I get the same
result both ways.  I thought from the way the book presented it that it was a script 
included in most servers.  Do I need to actually go and get the script?  Or is it 
something else?
Any idea what is going wrong?

The code looks like this:

<CFAPPLICATION name="Test" 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_do.cfm")>
     <CFLOCATION url="login.cfm" addtoken="No">
    </cfif>
   </cfif>

You could also see what it's doing at www.personal-copy.com/test/login.cfm

Thanks in advance everyone!

Tammy Schilling



------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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