In your view you can use something like :-

if ($session->check('Auth.User.id')) {
  echo $session->read('Auth.User.username');
}

----
Brett Wilton
http://wiltonsoftware.com

On Fri, Dec 12, 2008 at 8:10 AM, bioselem...@gmail.com
<bioselem...@gmail.com> wrote:
>
> I've been wacking my head on the wall for the past few days on this.
> I've got a basic auth login/logout system set up but for some reason
> nothing i try gets me the username. I just want to display it as in
> "Your logged in as xyz". I know it's probably something stupid and I'm
> no doubt going about it the wrong way. Any help?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to