Here is the exact code that I am using.
function overview($id = null) {
if (!$id) {
$this-Session-setFlash('Invalid Company.');
$this-redirect(array('action'='index'), null, true);
}
$company = $this-Company-read(null, $id);
I found the problem and wanted to post my findings here just in case
someone else encounters the same thing. I was using the following in
my default.ctp file and it seemed to be causing the problem for my
sessions.
link rel=next href=./index.html title=Next page /
I don't understand why and
I am having a difficult time working with sessions in my cake 1.2 app.
It doesn't appear to be behaving the way that I expect.
I have an action that sets a variable using the following line of
code.
$this-Session-write('companyName',$company['Company']['name']);
When I access this action and