/ Published in: PHP
A simple one liner that updates the Auth component's session variables when the user model is updated
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
foreach($this->data['User'] as $key=>$value) $this->Session->write('Auth.User.'.$key,$value);