closeSolution doesn't logout the user?

Hello,

to switch users we are currently using application.closeSolution(‘mySolution’). This closes the solution and re-opens it. The problem is, that security.login always returns false in our login method. I suspect it is because the user has not been logged out by closeSolution?

Is this a bug or do I miss something?

Thanks
Patrick

No, a user is still logged-in also between solutions!
if you really want the user to logout use this:

security.logout()
application.closeSolution()

OK. That’s what I thought. Now the issue is that I want to re-open the original solution and not show the solution dialog. That can be done with closeSolution(solutionToOpen), but not with security.logout(). So it seems I can either logout the user and show the solution dialog or do not logout the user but reload the solution right. That’s unpleasant.

What’d be nice then is either

  • optional parameter for closeSolution that logs out the user
  • optional parameter for logout that allows to pass a solution to load afterwards

No, you can simply do this:

security.logout()
application.closeSolution('openYourSolution')

works great for me.

Everything OK. To do both works as you suggested

security.logout()
application.closeSolution()

I thought this wouldn’t work, because logout already closes the solution. But it seems that using both works fine.