How to update user information stored in auth session? without logout and login again.
I think this function will do it.. but is it the best-practice?
function update($field, $value){
$this->Session->write($this->Auth->sessionKey . '.' . $field, $value);
}
I’ve completed
updatefunction to get an array of new values. with keys (field name):(thanks to tigrang for
loginfunction)