Hi Miles,

I have used
App::import('Component', 'CookieComponent');
$Cookie = new CookieComponent();
its working fine.

I didn't require  below the code in controller
function beforeFilter() {
$this->Cookie->name = 'COOKIE';
}

In my case its working fine.

Thanks for every thing.
Shadab

On Fri, Jul 31, 2009 at 3:38 PM, Miles J <[email protected]> wrote:

>
> Say you are using the Cookie component, and place this in your
> beforeFilter().
>
> function beforeFilter() {
> $this->Cookie->name = 'COOKIE';
> }
>
> If you import the component like so, the above setting WILL NOT be
> applied to the imported cookie component, so you will get mixed
> results.
>
> App::import('Component', 'CookieComponent');
> $Cookie = new CookieComponent();
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to