Also remember the more you have to add stuff to a cookie the longer the request is going to run because the cookie is submitted on every request. So right now it might be just a couple of variables but, as scope inevitably creeps so will the time of every request.
On Tue, May 27, 2008 at 10:18 AM, Shane Heasley <[EMAIL PROTECTED]> wrote: > It is a balancing act. For sites without too many visitors I prefer > session vars for security and speed. "Too many" is a function of how much > memory the server has and if there are multiple sites running on it etc. > Modern hardware usually has so much memory that you can easily track > thousands of vars concurrently - if not many more. However, if a site is > going to be really high volume I will use a DB or cookies. If you use > cookies you will need to check that the user has cookies enabled and if not > then fall back to Session, or, check out URLSessionFormat() > > Cheers, > > Shane Heasley > 307-751-3553 > www.CTek-Media.com > [image: View Shane Heasley's profile on > LinkedIn]<http://www.linkedin.com/in/shaneheasley> > > <http://www.ctek-media.com/> > > -----Original Message----- > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of *Derrick > Peavy > *Sent:* Tuesday, May 27, 2008 8:06 AM > *To:* discussion@acfug.org > *Subject:* [ACFUG Discuss] Speed and resources: better to do client or > session var? > > Probably discussed to death 10 years ago, 5 years ago, one day ago. I don't > know. Can't find definitive answers. > > Wondering... > > Does anyone think or dare I ask does anyone "know" if one type of variable > structure is faster or less resource intensive than another? In particular, > I have an app where I am using client variables for a lot of very simple > integer values. I could just as easily use session. > > The client storage option is a database and so, the larger the number of > client variables in the app, and the larger the number of users (visitors), > then the larger that database becomes. Again, these are simple values such > as one char text values, 1-8 digit integers, etc., Nothing complex. > > So, does anyone have strong feelings as to which structure would be better > for purposes of speed (overall page load), and system resources - larger > database for client variables versus more memory used for session? > > _____________ > Derrick Peavy > Sales and Web Services > CollegeClassifieds.com > http://www.collegeclassifieds.com > A Service of Universal Advertising, inc. > ___________________________________ > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform > > For more info, see http://www.acfug.org/mailinglists > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by FusionLink <http://www.fusionlink.com> > ------------------------------------------------------------- > -- Steven Ross web application & interface developer http://blog.stevensross.com [mobile] 404-488-4364 [fax] (404) 592-6885 [ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ] ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------