>- see footer for list info -<
All my client-state data I guess.

I would only want a session ID to be stored in the cookie, I wouldn't want
any so-called-session data stored there.

I'm new to CF and have read some articles to try get up to speed. The
concept of the Client scope seems new and quite specific to CF. If I'm
understanding it correctly, the Session scope is in RAM so no good for
clustering and Client scope is basically the same as Session scope but you
can store the data in a DB which is perfect for clustering...

In other web dev environments you would just change the Session vars to be
saved in a DB rather than using a different Object or scope type.

To me it seems pointless even bothering to use Session scoped variables when
Client scope does the basically same thing and is more scalable. I guess if
i want to use a complex data type then I could use some form of JSON
convertor?


Thanks for your help!

Nick



On 02/04/2008, Adrian Lynch <[EMAIL PROTECTED]> wrote:
>
> >- see footer for list info -<
> Client vars can be stored in a number of places, the registry, a
> datasource
> of your choosing or in a cookie on the user's machine. This means you
> can't
> store complex data (aside from serialising it) in the client scope.
>
> Session is always in memory as so you can store complex vars.
>
> What are you looking to store?
>
> Adrian



-----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Nick Middleweek
> Sent: 02 April 2008 12:18
> To: Coldfusion Development
> Subject: Re: [CF-Dev] CF Sessions
>
>
> >- see footer for list info -<
> Thanks for the reply Adrian...
>
> We're running on Windows but how can the Client vars be on the users
> machine? I can't see how the browser can write any kind of variable
> (except
> a cookie) to the users machine.
>
> What's the difference between Session and Client Scope? Is there an
> Application Scope as well?
>
>
> Thanks,
> Nick
>
>
>
> On 02/04/2008, Adrian Lynch <[EMAIL PROTECTED]> wrote:
> >
> > >- see footer for list info -<
> > Session scoped vars are in memory, cookie vars in the user's machine,
> > client
> > vars either in the DB, one the user's machine or in the registry if on
> > Windows.
> >
> > So it depends on the the scope you're using.
> >
> > Adrian
> > http://www.adrianlynch.co.uk/
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Nick Middleweek
> > Sent: 02 April 2008 11:59
> > To: Coldfusion Development
> > Subject: [CF-Dev] CF Sessions
> >
> >
> > >- see footer for list info -<
> > Hello,
> >
> > Where abouts are CF Sessions stored? Are they in RAM, like ASP? Or are
> > they
> > on disk like PHP?
> >
> > Or are they/ can they be told to be stored in a DB table? How would you
> do
> > that?
> >
> >
> > Thanks,
> > Nick
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
> >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> -<
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to