• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

client.cfid error

can u help.
i just upgraded from coldfusion mx 6.1 to  coldfusion mx 7.

the upgrade auto copied my settings from 6.1 across to version  - just fine.
BUT i'm getting an error on my web site ... that says ...

** Error Occurred While Processing Request
** Element CFID is undefined in CLIENT.
The error occurred in C:\web\opinionist\testcfid.cfm: line 9

7 :
8 : <body>
9 : <cfoutput>#Client.CFID#</cfoutput>
10 : </body>
11 : </html>

When it used to work!  ...
SO ... I made a simple cf page that just cfoutput the session var #Client.CFID# ...
and yup - ... it does not exist!

Any ideas what went wrong!? where do I check that the session var is enabled? - activated?

The COLDFUSION ADMIN panel says;
under server settings > memory variables
-> enable application vars - YES
-> enable session vars - YES

!? so I don't understand!

my application.cfm says

<cfsetting enablecfoutputonly="yes">
      <cfapplication name="fred"
      loginStorage = "session"
      sessionManagement = "YES"
      setClientCookies = "YES">
<cfsetting enablecfoutputonly="no">

Any ideas?
  • 4
  • 2
1 Solution
Just a note though it probably doesn't help...

>>I made a simple cf page that just cfoutput the session var #Client.CFID# .

Actually that would be a client variable not a session variable.  

Also you shouldn't store client variables in the registry on a non-development machine as per Macromedia's Best Practices.

Buts as to the problem.

Have you tried
1) Making sure there is room in the registry
2) Writing to a client var before outputting
3) Restarting the CF services?

Also because the login storage is in the session does that make CF store the CFID and CFTOKEN there too rather than in the client scope?
rcbuchananAuthor Commented:
ok, not actually sure what ur asking but ...

re client var - yes, sorry. you are right. newbie.

re should not store client var in registry ...  can u explain? not understanding reasoning.

I rebooted the box after the upgrade of CF. is that what u mean re restarting CF services.

Let me address each question:

>>re should not store client var in registry ...  can u explain? not understanding reasoning.

From Macromedia:
By default, ColdFusion stores client variables in the Registry. This can cause performance degradation in high-traffic sites as the Registry will increase considerably in size, causing ColdFusion server instability. Macromedia recommends storing client variables in an enterprise database.

If you start here:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/basicon6.htm and click the right arrows it will walk you through ways to migrate your client variables.

This link may also be of use:

>>I rebooted the box after the upgrade of CF. is that what u mean re restarting CF services.
That will work - the services automatically get restarted if the server re-boots

>>re client var - yes, sorry. you are right. newbie.

The reason I pointed out this difference was my last question about login storage.

Often cold fusion thinks of the CFID and CFTOKEN as part of the login.  SO I am wondering if it is storing those in session rather than client scope.

One thing you can do is this:

#CFID# - see if that errors.

and try

#Session.CFID# - see if that errors

and try

#Cookies.CFID# - see if that errors.

This will show you if the CFID is being store anywhere at all....

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Here are a few more links that may help:

Configuring and using client variables

ColdFusion 4.5.1 SP2 and Up: Recommended settings for client variable storage

rcbuchananAuthor Commented:
mrich ...
it was odd ... i removed the cfapplication setting and renetered ... and it now works.
so ... thanks for the tip re best practices and i'll tackle and improve but my fundamental problem seems to have cured itself.

strange, but glad it is working.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now