Hey Bill, I've not used the simple user auth method, i'm a fan of the othAuth version - thanks Oth!
either way, in the function that checks the login details (U and P), if they validate, Oth stores information about that user in the session as a way of a) checking a user is logged in and b) being able to access, display and query upon information about that user. does this make sense? so, in your auth component login function, upon successful login, store the username, or the id, or an array of information about the user in the session. then you can write a quick helper that accesses this information and displays it to your views. if any of this doesn't make sense let me know and i'll include some code examples. HTH mikee On 25/10/06, mike091 <[EMAIL PROTECTED]> wrote: > > Hi All, > Just wonder if you give give me some advise on this. > Based on the example Auth. system at > http://manual.cakephp.org/appendix/simple_user_auth in the Manual, I'm > wondering what is the best way to display the current username once > logged in and run queries based on that username? > > Thanks, > Bill > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---