when I update data in the User model, the Auth data is not updated.
How can I “refresh” the data which is returned by $this->Auth->user() when I am updating user model ?
and I don’t want to use
$this->Auth->login($data);
after updating my user table
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I tried the following line. Its works well form me
After modify the user data i written the following line