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);
$this->Session->write('Company.id', $company['Company']
['id']);
$this->Session->write('Company.name', $company['Company']
['name']);
$this->set('company', $company);
}
I then print the session array in my app_controller.php file
function beforeFilter() {
pr($this->Session->read());
}
When I am accessing the overview action, the expected values show up
in the session. Anywhere else they are gone.
Running cake 1.2.0.4798
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---