Adobe COLDFUSION 9 Manual page 315

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Variable
Client.CFID
Client.CFToken
Client.URLToken
Client.HitCount
Client.LastVisit
Client.TimeCreated
Note: ColdFusion lets you delete or change the values of the built-in client variables. As a general rule, avoid doing so.
You use the
,
Client.CFID
Client.CFToken
that do not allow cookies. For more information on supporting browsers that do not allow cookies, see
and session variables without
You can use the
Client.HitCount
users visit your site and when they last visited. For example, the following code shows the date of a user's last visit to
your site:
<cfoutput>
Welcome back to the Web SuperShop. Your last
visit was on #DateFormat(Client.LastVisit)#.
</cfoutput>
Getting a list of client variables
To obtain a list of the custom client parameters associated with a particular client, use the
function, as follows:
<cfoutput>#GetClientVariablesList()#</cfoutput>
The
GetClientVariablesList
current application. The standard system-provided client variables (
, and
TimeCreated
LastVisit
Deleting client variables
To delete a client variable, use the
following lines are equivalent:
<cfset IsDeleteSuccessful=DeleteClientVariable("MyClientVariable")>
<cfset IsDeleteSuccessful=StructDelete(Client, "MyClientVariable")>
The Client Variables page in the ColdFusion Administrator lets you set a time-out period of inactivity after which
ColdFusion removes client variables stored in either the Registry or a data source. (The default value is 10 days for
client variables stored in the Registry, and 90 days for client variables stored in a data source.)
Note: You cannot delete the system-provided client variables (
).
LastVisit
Description
The client ID, normally stored on the client system as a cookie.
The client security token, normally stored on the client system as a cookie.
Value depends on whether J2EE session management is enabled.
No session management or ColdFusion session management: A combination of the
values, in the form
=IDNum
CFID
&CFTOKEN=
support cookies and you pass the
CFID
J2EE session management: A combination of
CFID=
IDNum
&CFTOKEN=
tokenNum
The number of page requests made by the client.
The last time the client visited the application.
The time the
and
variables that identify the client to ColdFusion were first created.
CFID
CFToken
, and
Client.URLToken
cookies" on page 305.
and time information variables to customize behavior that depends on how often
function returns a comma-separated list of the names of the client variables for the
) are not returned in the list.
function or the
StructDelete
Last updated 8/5/2010
tokenNum. This variable is useful if the client does not
and
variables from page to page.
CFToken
CFID,CFToken
, and session ID values in the form
&jsessionid=
SessionID.
variables if your application supports browsers
,
,
CFID
CFToken
URLToken
DeleteClientVariable
,
,
,
CFID
CFToken
URLToken
HitCount
and
CFID
CFToken
"Using client
GetClientVariablesList
,
,
HitCount
function. For example, the
,
, and
TimeCreated
310

Advertisement

Table of Contents
loading

Table of Contents