Session Variables - a limit?

Posted on 1999-12-08
Medium Priority
Last Modified: 2013-12-24
Is there a limit to the number of session variables that may be set?

I looked around for the answer, but haven't been able to find any reference to it. Anyone know offhand?
Question by:punker

Accepted Solution

rod_nolan earned 40 total points
ID: 2267330
As far as I know, you're only limited by the memory you have. I don't think there's any technical limitation. Anyone know anything different?

JUst a heads up on session variables: a recent thread http://www.experts-exchange.com/jsp/qShow.jsp?ta=coldfusion&qid=10241128  reveals that session variables aren't all they're cracked up to be.

Good luck,

Expert Comment

ID: 2268799
You are only limited by the amount of available memory.  I have 1.5 gig of memory in our CF app server.  If you are worried CF4.0 and greater will allow client variables to be save to a database.  All client/session variables would be stored on the database and retrieved when requested.  Obviously there is some performance decreases but it is a way to avoid purchasing more mem


Expert Comment

ID: 2283396
I try to avoid session variables when possible, and use cookies instead.  You use less server memory, and you don't run in to the problem that many people have experienced, ie - session vars getting swapped from one user to another.  Had to put a lot of CFLOCKs in to handle this problem.  Maybe they will have it fixed by 4.5 though.

:) dapperry

Expert Comment

ID: 2287615
These are all valid comments are you ever going to respond????

Author Comment

ID: 2290060
Gee, sorry. A whole *week* goes by and I don't check EE. What was I thinking?

Thanks for your help *and* your patience.

Points to go he who answered first.

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The following information will get you familiar with your new DV server, including the (mt) Account Center, the Plesk Control Panel, our world-renowned support department and the rest of the (mt) tools that come with your new service.
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Watch the video to know the simple way to remove or recover or reset lost or forgotten passwords of Outlook PST file. With Kernel Outlook Password Recovery tool such operation is very easy to perform. It is a freeware with limitation to use with 500…

623 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