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"
      clientStorage="REGISTRY"
      clientManagement="YES"
      loginStorage = "session"
      sessionManagement = "YES"
      setClientCookies = "YES">
<cfsetting enablecfoutputonly="no">



Any ideas?
Richard
rcbuchananAsked:
Who is Participating?
 
mrichmonConnect With a Mentor Commented:
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?
0
 
rcbuchananAuthor Commented:
Mrichmon:
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.

R.
0
 
mrichmonCommented:
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:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17881


>>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....

0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 
mrichmonCommented:
Here are a few more links that may help:

Configuring and using client variables
http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/sharedVars4.htm

ColdFusion 4.5.1 SP2 and Up: Recommended settings for client variable storage
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17919

0
 
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.

cheers!
R.
0
 
mrichmonCommented:
strange, but glad it is working.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.