Ian,

>just in case anyone else was interested, the answer was cgi.REMOTE_ADDR, as in
>
><cfif cgi.REMOTE_ADDR CONTAINS '216'>
><cfset session.translate = 'yes'>
></cfif>
>
>and then I test for the existence of that session var and output stuff or not 
>accordingly. I don't need to lock this 'cause it's setting a hard value as the 
>session var, and the same for each user.
>

I can't remember exactly what the problem was and I can't find it cos I'm using a 
NTMail web mail from home which doesn't seem to like SunJRE1.4.2 too much....

But....  If I remember correctly 216 was the first octet(?) of the IP address.  If 
this is true and that's what you need to check for, your above code will find 216 at 
any position in the IP address.

You would be better with <cfif ListGetAt(cgi.remote_addr,1,".") EQ 216>

This picks up the ip address and handles it as a dot seperated list, grabs the first 
element from that list and checks to see if it is 216.

Obviously, if you get a request from any client with ip address that starts with 216 
your still going to get a confusion over whether the page is being translated or not.  
Only way to stop that is compare the full ip address in remote_addr with the expected 
ipaddress for the translation server.

Hope I'm not repeating anything thats already been said...  Sorry if I am.

Regards

Stephen



BEGIN:VCARD
VERSION:3.0
PRODID:-//Gordano//NONSGML GLWebMail 7.02.3032//EN
FN:
N:;;;;
EMAIL;TYPE=INTERNET:[EMAIL PROTECTED]
END:VCARD


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to