TIP: Use Markdown or, <pre> for multi line code blocks / <code> for inline code.
How to refresh user data in Auth
  • Hello,

    How do you refresh the user's data in the Auth module? I know Auth saves the data from the user when they login in the session, and then uses that data throughout the user's entire session. But if the user updates their information during the session, then Auth would still have the old data. So I was wondering how you could refresh it? Any help would be appreciated.

    Thanks,
    Dennis
  • ORM model has a $_reload_on_wakeup property (TRUE by default), so every time Kohana_Session initialized, $user object requests data from Database (you can see it with Profiler). Note that if $_reload_on_wakeup == FALSE, your model will not be refreshed.