Logout/-in user in Servoy 6

Hi,

I have advanced security enabled and my own login form. I need a function to logout the current user of the solution and login as an other user to the same solution (Smart Client).
This worked fine in Servoy 5.2.x, but in Servoy 6.0.1 the funcion ‘security.logout()’ doesn’t logout the current user!? The user is always as client in servoy-admin!
Only ‘application.exit()’ is loggin out the user from the server.

I couldn’t find in the wiki and forum that anything has changed.

How do I get it to work the user logs out, the main solution window is closing and the login dialog form from the login module is opening in Servoy 6?

Thomas,

As part of logout, the solution is closed.
It may be that closing the solution is blocked, in that case the logout is also blocked.

Closing the solution could be blocked because some data unsaved failed validation, or the solution onclose method returns false.

Rob

Hi Rob,

rgansevles:
As part of logout, the solution is closed.
It may be that closing the solution is blocked, in that case the logout is also blocked.

Closing the solution could be blocked because some data unsaved failed validation, or the solution onclose method returns false.

that’s it! In my onClose method was one false return. I set this return to true and now the logout function works fine.

Thank you

Thomas