Shally,

You need to refer to CGI client variables:

The following table describes the most common CGI environment variables
created by the browser and passed in the request header:

HTTP_REFERER  The referring document. This is the document that linked to or
submitted form data.
HTTP_USER_AGENT  The browser the client is currently using to send the
request. Format: software/version library/version.
HTTP_IF_MODIFIED_SINCE  The last time the page was modified. This variable
is sent at the discretion of the browser, usually in response to the server
having sent the LAST_MODIFIED HTTP header. It can be used to take advantage
of browser-side caching.

eg:

<cfoutput>
#CGI.HTTP_User_Agent#
</cfoutput>

Give me this (under Internet Explorer 5.5):

Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Thus under Netscape Navigator 4.7:

Mozilla/4.7 [en-gb] (WinNT; U)

And this under Netscape 6:

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20001108
Netscape6/6.0

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Shally
Sent: Thursday, 24 May, 2001 6:56 AM
To: CF-Talk
Subject: Operating system and Browser.


Hi Every one!

Is there any way to know the Operating system and the
browser the user is using through the CF code.

Shally:>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to