Re: Cookie issues.
Ignore. Figured out the issue. combination of JS and some premature redirects.
On Friday, May 11, 2012 3:10:21 PM UTC-4, Jeremy wrote:
Hey everyone,I am trying to use a cookie to set store a link to use later and am running into issues.CakePHP 2.1I can write a cookie outside of Cake using setcookie.AppController ->var $components = array('Auth'=> array('authenticate' => array('Form' => array('fields' => array('username' => 'email')))),'Session','Cookie','Email');In my controller I am calling,$this->Cookie->write('red', '/lists/view/'.$list['ListHeader']['url_slug'], false, 3600); yet I am unable to retrieve the value later with:$this->Cookie->read('red');Any ideas?
On Friday, May 11, 2012 3:10:21 PM UTC-4, Jeremy wrote:
Hey everyone,--I am trying to use a cookie to set store a link to use later and am running into issues.CakePHP 2.1I can write a cookie outside of Cake using setcookie.AppController ->var $components = array('Auth'=> array('authenticate' => array('Form' => array('fields' => array('username' => 'email')))),'Session','Cookie','Email');In my controller I am calling,$this->Cookie->write('red', '/lists/view/'.$list['ListHeader']['url_slug'], false, 3600); yet I am unable to retrieve the value later with:$this->Cookie->read('red');Any ideas?
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

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home