Hi Mike, welcome to the CF community!

> I would like to have my site remember a user's setting if they request
> it.  So, I figure that I'll use a single cookie that stores a unique
> user-id in a cookie and then request that cookie and reference it
> against the user database for the rest of their configuration (username,
> email, etc)

For basic display prefs, a single value is fine, but once you start getting
into sites that require more security, consider using two cookies (an id and
a session hash) instead of just one.

> What I'm somewhat confused about is if I need to enable client
> management to use cookies?  And do I need session management if I want
> to make use of session variables, or does that just make the app create
> CFID and CFTOKEN.  Here's what I'm guessing, and I was hoping someone
> could tell me if I'm right or wrong..

If you just want to set your own cookies, client/session management does not
need to be enabled.  You should only leave these types of variables turned
on if you are planning on using them.

For what you're wanting to do, it would probably be wise to just disable
CF's state-management and use your own cookie(s) to handle the prefs.

Just remember that there are any number of ways to handle user sessions, and
you will get a different answer no matter who you ask.

-Justin Scott, Lead Developer
 Sceiron Internet Services, Inc.
 http://www.sceiron.com


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to