I have try any way I can do to read session in a cache views.
It dos'nt work.

My codes like this.

<cake:nocache>
<?php
 //use session helper
 echo $session->read('user');
?>
</cake:nocache>

<cake:nocache>
<?php
 //use global session var
 echo $_SESSION['user'];
?>
</cake:nocache>

<cake:nocache>
<?php
 //use session components
 echo $this->controller->Session->read('user');
?>
</cake:nocache>


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

Reply via email to