I've tried to set in the UsersPresenter set the Session Object
$section = $this->session->getSection('user'); $section->user = "admin";
I like to set an Object that comes from the Database in the UserModel in a Session with:
Object that i need save in the Session for example: $user->user_id $user->user_name $user->mandator_id $user->mandator_name etc. $session->user = $user;
It doesn't Works this way.
Can you help me please?
Last edited by thundervoice (2016-03-08 17:16)
Yes, if i put out the $session throw it is empty with one Parameter:
I don't understand how i can set Parameters in the $session Object. In Simple PHP something like this:
$_SESSION['user_name'] = "admin"; $_SESSION['user_id'] = 12345; etc.
This i need from the UserObject in Database.
Last edited by thundervoice (2016-03-08 17:27)