Sunday, April 1, 2012

Session::setFlash dosn't work under chrome

cake version: 2.1.1
chrome version: 18.0.1025.142 m Latest
code to reproduce error:
put in controller action:
public function testflash(){
$this->Session->setFlash("flash message will not be shown in chrome");
$this->redirect(array('action' => 'index'));
}
in the default layout:
<?php echo $this->Session->flash(); ?>

GET url /yourcontroller/testflash

detail: the code will work as normal and show the flash message in Firefox 10 , IE6 as i tested , when using HTTP debugger like fiddler , u will notice that 'CAKEPHP' cookie is set with 302 redirect but when the redirection page is opened chrome dosn't set the cookie back!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: