is there a way to store only the user id in the session and get the user object from database on every request? I need a page, where the user can change his data. That way the shown user information would be updated and the user doesn't have to login again to see the changes. At the moment i use:
I know i could change the user data in my controller action with the following code, but i think the other way would be better.
$authService->getStorage()->write($updatedUser);
Sorry! Of course only the id is stored in the session. It was a mistake of myself! :/