Some notes: no, you don't generally use cflock or cfcookie with client
variables. Adding these to your code are unlikely to solve the
problem.

If you are using client variables to track whether a user is logged
in, you may wish to reconsider. I would not recommend doing this.

I wouldn't store client variables in a cookie, unless there is a good
reason why the site isn't storing them in a database.

The first thing you might check is whether the URL switches from
www.site.com to site.com, or some similar switch in the URL, which is
the most common reason a cookie value can be lost. Another common
reason is using cflocation on a page that sets a cookie value, which
was more of a problem in older versions of CF.

-Mike Chabot

http://www.linkedin.com/in/chabot

On Fri, Aug 13, 2010 at 9:55 PM, Randy Zeitman
<[email protected]> wrote:
>
> I have a user with cookie problems (who happens to be a big shot!... please 
> help me keep this client!)
>
> ... when they login, I set the client variables, and sometimes the cookie 
> that tracks those client vars doesn't get set and the website thinks they're 
> not logged in.  (My host recently told me these are stored in a cookie and 
> not ram, which I verified).
>
> Am I supposed to use cflock or cfcookie or so something else to insure that 
> cookie gets set properly? (and if not redirect to some error message about 
> cookies?)
>
> (how please)
>
> Thank you (for having a newbie list as well...)
>
> Randy
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5060
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to