Session variables available when using CakePHP auth component
To see which variables are available when using CakePHP auth component simply dump out:
$session->read(‘Auth.User’)
E.g. using the superb dBug tag (if you’re not using it you should be, I don’t even bother with other dump functions now):
App::import(“Vendor”, “dbug2″);new dbug2($session->read(‘Auth.User’));
As an aside, anyone who is NOT using theĀ php dBug tag which mimics the equally excellent CFdump tag in Coldfusion, you should be!
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Leave a comment