How are you writing the session variable? In the code you pasted you were using $_SESSION['Customers.id'] .. did you try $this->Session->write('Customers.id ', $customer_id); ?

On 5/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:

Well, actually I did that but no way...when I print the value in the
view I get always the favicon.ico.

The code is:

in the controller - to retrieve the value

$customer_id = $this->Session->read('Customers.id');
$this->set('customers_id',$customer_id);

in the view - to print it

<?php echo $customers_id; ?>

And nothing...I get always that "favicon.ico".

Any solution?



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to