Update User Session

/ Published in: PHP
Save to your folder(s)

A simple one liner that updates the Auth component's session variables when the user model is updated

Copy this code and paste it in your HTML
  1. foreach($this->data['User'] as $key=>$value) $this->Session->write('Auth.User.'.$key,$value);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.