Re: Session value is favicon.ico Why?

2006-04-25 Thread Chris Cassell

I had the same problem. Make sure the link to favicon.ico is root- 
relative (/favicon.ico). Otherwise the server's looking for / 
controller/action/favicon.ico and the broken link gets captured as  
the current page. Same thing for your css and js.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Session value is favicon.ico Why?

2006-04-25 Thread nezox

I had session write problem.


class TestController extends AppController
{
var $name = 'Test';

function write($page_id)
{
$this->Session->write('page_id',$page_id);
}

function view()
{
echo $this->Session->read('page_id');
}
}

First: access to
/Test/write/1

Next: access to
/Test/view/

---result of view() is ---
favicon.ico
---


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---