- June 13, 2016 at 18:15 #3144
I am trying to build some extensions for my classibase and need some session variables to get transferred. (logged-in userid and eventuelly usename)
Can you please tell me how to get it?
It looks like classibase creates a session variables ‘id’, ‘username’, ’email’, ‘level’ in the script AuthUser.php and distroyes when the user logges out.
I tried to catch those variables in themes/views …/ad.php like:
When this attempt failed I tried to create a session variable directly:
but both attempts failed. (Needles to say that I was logged in).
Can you please help me by this?
If I am not mistaken, I was using the second one with AuthUser::$user->id a while ago and it worked. But now it seams not working, or at least not working by me.
Thanks.June 13, 2016 at 20:50 #3147
I was not quite right with
not getting any value. It does. but not username, which is not that important. I can get it through database once I have id.
But I rather have a session variables from a system, not having to add my own code and to know if the user is logged out. Otherwise I will have no clue if the user logged out unless I have to put some extra codes somewhere.
thanks for help.
June 16, 2016 at 09:03 #3152
- This reply was modified 9 months, 2 weeks ago by Tom Chung.