2012-03-06 50 views

回答

3

會話在$ this-> Auth-> login()調用中填充。 您提交給此方法的所有內容均存儲在會話中。

另見API: http://api20.cakephp.org/class/auth-component#method-AuthComponentlogin

+0

大,非常感謝!可能對其他人有幫助,如果這將引用此處:http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#accessing-the-logged-in-user – 2012-03-06 16:16:38