You can turn on the "Show variables" in the Debug settings section of CF
Administrator (assuming you have this access) and it will spit out values of
all CGI, URL, form, and cookie variables. This will be helpful for
developing your application.

If you do not have access to the CF Admin and you just want to confirm the
CGI variables are available, you can manually write some code to display the
CGI variables:

<cfoutput>
  #CGI.PATH_INFO#
</cfoutput>

Hope this helps.

Sincerely,

Shane Witbeck
Webmaster
mailto:[EMAIL PROTECTED]
www.digitalsanctum.com




-----Original Message-----
From: Tammy Schilling [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 05, 2000 12:17 PM
To: [EMAIL PROTECTED]
Subject: CGI problem, I think


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.

------------------------------------------------------------------------------
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