how to get user_id if enhanced security login?

I have upgraded/changed the login functionality to Servoy 5.2’s Enhanced Security. I’m using an individual loginform for inserting username and password and that is working well. But in the main solution I need the user_id of the user who is currently logged in and in the past I got this information from the loginform.
How do I get now the user_id?
The information (username) I need is only handeled in the login and authenticate solution.

Thomas

Life could be so easy…

“security.getUserName” is my friend! I thought I need the UID to get the UserName.
Next I try first and post then.

Thomas

Also all globals you set in the login solution, are available in the main solution.

Hope this helps also…

Thomas,

The security user id/name has not changed with the new authentication method of Servoy 5.2.
How did you get different results?

Rob

rgansevles:
The security user id/name has not changed with the new authentication method of Servoy 5.2.
How did you get different results?

Hi Rob,
in Servoy 5.1.4 I got the user_name from the login field after validation in the main solutions user_tbl. But now this way is not more possible to go and so I had to though about an other (better :-)) solution.