What about this?

1) after saving new database info, write new username / password to a
cookie
2) destroy current session data
3) autologin using the information from the cookie

This page should help a bit:
http://www.littlehart.net/atthekeyboard/2007/11/20/follow-up-to-a-hopefully-usefull-tutorial-for-using-cakephps-auth-component/



On Apr 24, 6:46 am, Zoltan <[EMAIL PROTECTED]> wrote:
> Yes,
>
> That's what I'm doing: 1) save data to database, 2) (the problem) how
> to refresh the session from the database without them having to
> logout / log back in.
>
> Zoltan
>
> On Apr 23, 4:12 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
>
> > Hey,
> > Shouldn't you change it in db and update the auth data from the db ?
> > look at Auth/session how the data is stored.
>
> > HTH,
>
> > On Wed, Apr 23, 2008 at 8:38 PM, Zoltan <[EMAIL PROTECTED]> wrote:
>
> > >  I've got a section where I'd like to let a user change their username,
> > >  with something like:
>
> > >  e.g. $this->Auth->user('username') = $this->data['User']['name'];
>
> > >  However this gives an error, is there a way to do this properly?
>
> > >  Zoltan
> > >  www.YYZtech.ca
>
> > --
> > Marcin Domanskihttp://kabturek.info
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to