Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Fusebox
Cold Fusion Fuse Box List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About CF Fusebox Methods :
product's home
product's list home
 
  Archived TallyList / Fusebox: 
Subject: RE: using client vars to maintain session state
Erik Voldengen (63p/+0r)     Posted: Tuesday 17 Apr 2001
This post: 38 views, +0 rating

I was worried about this very topic about 9 months ago when we began a huge project. Each client was going to need several client variables to accomplish what I wanted.

The solution was to make a query, serialize it to a wddx packet, and set it to a single client variable. It works very well.

You can run an initial query for the user, get a bunch of info, and add to that query doing something like this (warning, put on your hack goggles):

<CFSET TempArray = ArrayNew(1)> <CFSET TempArray[1] = "#ValueList(GetSubscriptions.SubscriptionID)#"> <CFSET temp = QueryAddColumn(getLogin, "#GetSubscriptionTypes.TableName#_Subscriptions", TempArray)>

I did this because it was almost impossible to write a dynamic query that contained all the data I needed. Plus, it was hitting three different databases, which does not make things easy.

When you've added all you want to the query, just serialize it:

<CFWDDX ACTION='cfml2wddx' input=#GetLogin# output='Client.MemberInfo'>

It works like a champ.

-Erik Voldengen

> -----Original Message----- > From: Brook Davies [mailto:brook@maracasmedia.com] > Sent: Tuesday, April 17, 2001 12:23 PM > To: Fusebox > Subject: using client vars to maintain session state > > > Hi, > > What I want to know if how much is too much when it comes to > client vars > with DB storage. If each client has 40 variables that are be > written to the > db on ever request, will these slow things down considerably? > What about > large client vars containing say 35-45k text. Is this the end > of the world? > > What do you guys think? > > sqlserver 7.0 (dual 550, 1gig ram) > IIs nt4.0, CF4.5.1, dual 550, 756 ram) > > Brook Davies > Maracasmedia Inc > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Similar Subject Line Posts (+/- two weeks of this post)
RE: using client vars to maintain session state  18 Apr 2001   (32 v/ +0 r)
RE: using client vars to maintain session state  18 Apr 2001   (31 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (24 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (31 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (33 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (31 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (25 v/ +0 r)
Re: using client vars to maintain session state  17 Apr 2001   (32 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (26 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001   (31 v/ +0 r)
Re: using client vars to maintain session state  17 Apr 2001   (32 v/ +0 r)
RE: using client vars to maintain session state  17 Apr 2001 (this post)   (38 v/ +0 r)
using client vars to maintain session state  17 Apr 2001   (31 v/ +0 r)
 

Send a reply to the Fusebox list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000