Solved

Variable length

Posted on 2002-03-22
6
490 Views
Last Modified: 2013-12-24
This should be easy if you know.  What is the maximum length of the CFToken and CFID in CF5?

Michael
0
Comment
Question by:SewellM
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:cheekycj
ID: 6891072
I am not sure what the maximum values are but since they are stored in cookies or appended to the URL the size of cookie is 4KB and you can only have 20 cookies per domain (but since you can't spread values over multiple cookies) you have a 4KB restriction on each.

if you use URL to pass the two parameters then the browser and server URL size restriction will play a part in it.

CJ
0
 
LVL 3

Author Comment

by:SewellM
ID: 6891134
Thanks, but that is not quite what I meant.

In our application, we are storing data in a table and associating it with a users session.  This data is cleared whenever the user logs back in.  In the table, I had declared the field as having a length of 4.  Well, that caused problems yesterday when the value of CFID reached 5 (rolled over from 9999 to 10000).  I posted this question and then continued to do research.  I was able to find a length for CFToken, but could not find a length for CFID.  I have since determined why.  There is no set max length for this value.  It is created as a sequential value by the CF server.  So if your server stays running without restarting or rebooting the server  for a long period of time and has high volumes of visitors, this value could reach millions or even 100 millions.

I have since adjusted the field to allow for larger values.  Thanks for your help.  I can always count on you to reply when no one else has the answer.  

Thanks, and you will probably get the points (like you NEED them).

Michael
0
 
LVL 2

Accepted Solution

by:
Cyril_H earned 25 total points
ID: 6893456
About CFID, if you check the tables that CF create to store Client Variables (CDATA, CGLOBAL), you can see that CFID column is set to CHAR(20).

Cyril
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 19

Expert Comment

by:cheekycj
ID: 6893982
Both of those points are good to know.

I knew CFID could get up there.. I have seen really high values.. but what the actual limit (rollover point) was, I didn't know.

CJ
0
 
LVL 3

Author Comment

by:SewellM
ID: 6913431
I am accepting Cyrils answer as "closest" to correct.  He validated what my research had discovered.

Cheeky, if you feel you need some points or feel slighted, let me know and I will give you some points too.... ;-)

Thanks for both your help.  
Michael
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6913737
Thats ok.. Just glad you were able to find what you were looking for.

 really don't need any more points :-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now