Logout a user and re-login for smart and web client

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Logout a user and re-login for smart and web client

Postby patrick » Thu Sep 06, 2007 6:28 pm

We have just discovered something nice in the web client. Our smart client solution can logout a user and re-login by doing

Code: Select all
security.logout();
application.closeSolution(application.getSolutionName());


This avoids the "Select solution" dialog that appears after logout() without further actions.

How to do this in the web client? We tried and found that this works:

Code: Select all
var vUrl = 'http://yourServer/servoy-webclient/ss/s/' + application.getSolutionName();
application.showURL(vUrl);
security.logout();


You end up in the login form. We thought that was pretty cool!
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Return to How To

Who is online

Users browsing this forum: No registered users and 3 guests