I didn't check syntax before I sent that... it was a "from the hip" 
coding in an email client.  You might want to check the syntax on the 
ListLast funciton

Hatton

phumes1 wrote:

> 
> Hmmm....thats a good idea. Never thought of that.
> 
> When I access my page "http://localhost/test/index.cfm"; the 
> CGI.HTTP_REFERRER is empty.
> 
> I then click on a link the CGI.HTTP_REFERRER dumps out 
> "http://localhost/test/index.cfm?dir=d%3A%5Cbooks\";
> 
> I tried this code but I must be doing something wrong.
> 
> <cfif lcase(ListLast(CGI.HTTP_REFERER, "/")) NEQ "index.cfm">
>         <h3>First</h3>
> <cfelse>
>         <h3>All others</h3>
> </cfif>
> 
> At 09:05 AM 3/20/2002 -0500, you wrote:
> 
>> Have you tried looking at the CGI.HTTP_REFERER variable?  If it's null 
>> (or lcase(ListLast(CGI.HTTP_REFERER, "/")) NEQ "index.cfm") then 
>> you're not coming from yourself.
>>
>> HTH
>> Hatton
>>
>> phumes1 wrote:
>>
>>> Hi,
>>> This is regarding a post from yesterday. Maybe I didn't explain it 
>>> properly. I had mentioned a custom tag but for now
>>> lets just forget about it.
>>> I am running IIS on NT 4. All users have accounts on the system.  In 
>>> IIS under the "Default Web Site Properties" I went into
>>> the "Directory Security" tab and disabled the "Anonymous Access" and 
>>> enabled the "NT Windows Challenge/Response" only.
>>> Now when users try to access the web page they are prompted with a 
>>> username/password Windows authentication dialog.
>>> If the correct username/password are entered the user is redirected 
>>> to my index.cfm file.
>>> This is what I would like to do.
>>> Within my index.cfm or application.cfm file I want to check if this 
>>> is the first time that the index.cfm file is loaded. If so, do 
>>> something otherwise do nothing.
>>> Below is just an example...
>>>
>>> index.cfm or application.cfm
>>> --------------------------------------
>>> - Check to see if this is the first time index.cfm file is loaded (at 
>>> login time)
>>>    - If so dump some test
>>>         <p>Logged in</p>
>>>
>>>       If index.cfm is loaded any other time do nothing
>>>
>>> I'm not sure how to incorporate this?
>>>
>>>
>>>
>>>
>>> "Directory Security"
>>> tab I have disabled the Anonymous Access and enabled the Windows 
>>> Authentication.
>>>
>>>
>>> 
>+-----------------------------------------------------------------------------------+ 
>>>
>>> Philip Humeniuk
>>> [EMAIL PROTECTED]
>>> [EMAIL PROTECTED]
>>> 
>+------------------------------------------------------------------------------------+
> 
>>>
>>>
>>> ------------------------------------------------------------------------- 
>>>
>>> This email server is running an evaluation copy of the MailShield anti-
>>> spam software. Please contact your email administrator if you have any
>>> questions about this message. MailShield product info: 
>>> www.mailshield.com
>>> -----------------------------------------------
>>> To post, send email to [EMAIL PROTECTED]
>>> To subscribe / unsubscribe: http://www.dfwcfug.org
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This email server is running an evaluation copy of the MailShield anti-
>> spam software. Please contact your email administrator if you have any
>> questions about this message. MailShield product info: www.mailshield.com
>>
>> -----------------------------------------------
>> To post, send email to [EMAIL PROTECTED]
>> To subscribe / unsubscribe: http://www.dfwcfug.org
> 
> 
> 
> 
>+-----------------------------------------------------------------------------------+ 
> 
> Philip Humeniuk
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 
>+------------------------------------------------------------------------------------+
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
> 



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to