Login solution is not configured for webclient

Hi guys,

When logging out of my solution in webclient, I am taken to ‘Error loading solution’ page.
There are no errors in the log file, only this: “INFO com.servoy.j2db.util.Debug Not loading solution login, it is not configured for webclient usage”

How do I configure the login solution for webclient?
Thanks.

Are you somehow targeting the login module when you logout? You cannot target anything in that module directly from a client (showing a form, logout solution redirect, etc).

david:
Are you somehow targeting the login module when you logout? You cannot target anything in that module directly from a client (showing a form, logout solution redirect, etc).

Well, David, what I do is this:

security.logout("login");

In Smart Client it returns me to the login screen.
In Web Client it complains.

Also, application.closeAllWindows(); doesn’t seem to work in Web Client :(

maria.kyselova:
what I do is this:

security.logout("login");

Don’t put the login module name there. Put the name of the module that is your main application entry point. The one that has property “loginSolution” value as “login”.

maria.kyselova:
Also, application.closeAllWindows(); doesn’t seem to work in Web Client :(

Correct. Welcome to web client world :)

david:

maria.kyselova:
what I do is this:

security.logout("login");

Don’t put the login module name there. Put the name of the module that is your main application entry point. The one that has property “loginSolution” value as “login”.

Awesome. Thanks, David, that worked.

david:

maria.kyselova:
Also, application.closeAllWindows(); doesn’t seem to work in Web Client :(

Correct. Welcome to web client world :)

Yeah, haha, but really, how do you deal with it?

david:

maria.kyselova:
what I do is this:

security.logout("login");

Don’t put the login module name there. Put the name of the module that is your main application entry point. The one that has property “loginSolution” value as “login”.

maria.kyselova:
Also, application.closeAllWindows(); doesn’t seem to work in Web Client :(

Correct. Welcome to web client world :)

David, my windows are now closing in webclient. I changed nothing.
I don’t understand but I don’t mind either :D

My understanding of application.closeAllWindows() is that is closes everything but the main application window. And since you can’t show multiple windows in web client, it’s not used for anything in web client. But maybe that has changed with a version of Servoy.

There are various javascript hacks for closing windows and tabs but they are all somewhat browser specific.

On logout, we send users to a generic page which we can optionally insert messages to and they can use to get back to the login page:

[attachment=0]Screen Shot 2013-10-08 at 7.05.47 AM.png[/attachment]

david:
My understanding of application.closeAllWindows() is that is closes everything but the main application window. And since you can’t show multiple windows in web client, it’s not used for anything in web client. But maybe that has changed with a version of Servoy.

There are various javascript hacks for closing windows and tabs but they are all somewhat browser specific.

On logout, we send users to a generic page which we can optionally insert messages to and they can use to get back to the login page:

Thanks, David.

Guys, I still have a problem. Please help.

In our multi-window application, I successfully close all windows, logout and display the login screen on the main page only if I log out of the main page.
But because each of our windows has the logout button, whenever I log out of a window that is not main, everything closes except the current active window and main page. Also the login screen is displayed on that current active window, rather than the main page. At the same time, the main page is just hanging there, logged out but not timed out or anything, like nothing happened.

I kind of understand why it happens, but I cannot find a way to get around this.
Please help.

maria.kyselova:
I kind of understand why it happens, but I cannot find a way to get around this.

Scott explained it best here: viewtopic.php?f=34&t=19952#p107395

In my words…multi-window apps with Servoy web client?! You’re crazy :)