Posted By

robksawyer on 08/19/10


php cake

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Update User Session

 / Published in: PHP

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

  1. foreach($this->data['User'] as $key=>$value) $this->Session->write('Auth.User.'.$key,$value);

Report this snippet  

You need to login to post a comment.