[EMAIL PROTECTED] wrote:
> Is there a way that each web site on the server can define their own
> client storage database?
>
> In my example I would like to define my own DB for client storage.
> But CF trips up wth a
>
> The name you specified, 'mywebsite_clientvars.mdb', has not been
> enabled as client variable storage.
>
> CLIENTSTORAGE="mywebsite_clientvars.mdb">
>
>
> Can I only use the db that is defined in the CF admin for all web
> sites client storage or is there a way around this?
You can only use a datasource that is set up as clientstore in the CF
Admin. But it is possible to set up multiple clientstores. You can even
automate the creation of clientstores.
A CF MX code snippet for adding a clientstore would be like:
<cflock name="serviceFactory" type="exclusive" timeout="10">
<cfobject action="create" type="java"
class="coldfusion.server.ServiceFactory" name="factory">
<cfscript>
clientdb = StructNew();
clientdb.description = "Description";
clientdb.disable_globals = "YES/NO";
clientdb.dsn = "datasource name";
clientdb.name = "clientstore name";
clientdb.purge = "YES/NO";
clientdb.timeout = number of days;
clientdb.type = "JDBC";
factory.clientscopeservice.clientstores["forumspot"] =
Duplicate(clientdb);
</cfscript>
</cflock>
Just create one clientstore and then dump
#factory.clientscopeservice.clientstores# and you will see what your
exact settings are.
Jochem
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com