you have two choices either you hack your customized/personalized \app\controllers \components\auth.php file (not recommened if you are not expert and if you do not need it as in this case)
ORRRRRR you have to put it in a controller callback so a check done one time if (!array_key_exists('requested', $this->params)) { /* do here a test on one of the non required (auth user session key) field if it is still available if so delete all the non required .... */ } On Oct 17, 3:26 pm, "marco.rizze...@gmail.com" <marco.rizze...@gmail.com> wrote: > Hi > I use the Auth component to login in my application. > I have noted that when the login is correct all fields of User model > are saved in the session. > How can I do so only some fields are saved in session and the other > not? > Thanks > Marco --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---