>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.
Ok, so when/why does one use client variables? I used them because every piece of documentation I had said that's what you use to track variables between pages (if you won't want to use sessionID/token and such in the url. >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. Ok, can you explain why? (I would have to rework the entire site to change it.) >I wouldn't store client variables in a cookie I don't know how else to store them... the server does that automatically. When I create the site all the docs I read said they were stored in memory which was my main reason to use them (to avoid cookies altogether). >unless there is a good >reason why the site isn't storing them in a database. I don't know how that would work... you make a DB inquiry on each page? (how do you know what record belongs to each user?) >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. oh! I had no idea about that ... I'll look into that. >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. Well, when I use CFlocation I think I always choose "no" for the token options. Thank you for your help... I hope it won't be too much time for you to reply. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:5061 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
