Just use the Session helper in the layout:
<?php if ($session->check('User')) : ?>
<p>Hello again <?php echo $session->read('User.name'); ?></p>
<?php else: ?>
<p>Welcome, guest!</p>
<?php endif; ?>
On Jan 25, 4:22 pm, Igor <[EMAIL PROTECTED]> wrote:
> Perhaps i should add that what I'm trying to do is a single session
> check that is accessible from different views.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---