I tried to set som cookies today on my development domain(localhost), and for strange reasons it didn't work as expected. The cookie didn't live as expected and after digging into the problem I found that setting $this->Cookie->domain to false made things better. The problems seems to be that if domain is set to localhost the PHP method setcookie doesn't work as expected. I also found som good thoughts about this here: http://www.aeonity.com/frost/php-setcookie-localhost-apache . It sure could be my setup, but it is pretty default MAMP and therefore I believe others could be struggling with this to.
I made my own patch to CookieComponent. It's easy. Just check if domain is localhost and set it to false if true. I want to provide a bug report but wanted to here with this group if this is a known problem and that it has been taken care of. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---