IF you have a service provider that won't let you get some db-driven client
var action going on, you could always roll your own. If you have at least
one ODBC conn available, you can definately be in the client variable
business.

Basically, client vars work like this. Your CFID is used as the primary key
that points to individual records. You would have a field that holds the
name of your app, and another field called CDATA that would be a memo / text
field (a field that allows large amounts of data, it depends on your
particular brand of db).

You would use the good ol' WDDX-to-client-variables trick. At the top of
your index.cfm, you would call up any client variables from the db, by doing
a:
SELECT CDATA from homegrown_client_db where CFID=#CFID# and
application_name="#application.applicationname#"
What you then do is a wddx2cfml to read in the packet and create your
homegrown client vars.

Now, in all of your fuseactions, at the end of a given fuseaction, you grab
all the homegrown client vars, do a cfml2wddx, and do an UPDATE query to
stuff the new WDDX packet back into the db.

Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center

> -----Original Message-----
> From: Ryan Wood [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 7:30 AM
> To:   Fusebox
> Subject:      RE: Expiring Client Variables
> 
> The problem is that I have a client that is hosted on a server that will
> not
> grant me access to CF admin, limits sticky sessions to 3 min, and does not
> support using a database for client variable storage (www.shanje.com). I
> was
> very disappointed, but changing hosts right now is not an option. The only
> option I have for maintaining state is by storing cookies. Bad, I know,
> but
> unfortunately the only option. I can just use the <CFCOOKIE> tag for
> variables that I want to expire.
> 
> Ryan
> .....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to