Cookies--getting chocolate in my peanut butter (and vice versa)
I have two plugins, Comments and Poll. Both have a component, and each
of those components uses CookieComponent. They also both handle Cookie
settings in startup(). Unfortunately, it appears that they're sharing
the same component instance, as the 'poll' cookie is being re-named to
'comments'.
I've checked, and the original controller using the plugins does not
use Cookie directly. However, AppController does. But there doesn't
appear to be any issue there as I can see the default 'CAKEPHP' also.
So, if each plugin can't have it's own separate cookie (much
preferred) it looks like I'll have to resort to using the default one
and using namespace/dot notation for the keys. But what if the app
itself doesn't use Cookie anywhere? Should each plugin component then
fall back to the name of the plugin?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home